Log information path after Unity program is run

After the Unity game program is running, there is a path file in the background specifically for recording log information.

When an error occurs while running the program, we can check the log to obtain relevant useful information, which will be of great help to us in dealing with the bug.

On Windows platforms, the path is:

C:\Users\<username>\AppData\LocalLow\<CompanyName>\<ProductName>

On the macOS platform, the path is:

 

/Users/<username>/Library/Application Support/<CompanyName>/<ProductName>

When we cannot find the above path, we can also print the Application.persistentDataPath path through the code to obtain the specific path.

Debug.Log(Application.persistentDataPath);

Guess you like

Origin blog.csdn.net/mr_five55/article/details/134866877