I would say I’m fairly new to Unity still, but I’ve been working on this 4-player air hockey game for quite some time now (~5 months consecutively) and I’ve run into the problem of the game running fine in the Unity Editor, but once I’ve built the game, one of the key features is missing and I want to see if I can:
Check bare logs of the built game (and see if objects aren’t being assigned correctly, are missing, etc.)
Make debug messages of my own to see if code is executing properly
I am currently using Unity 2021.1.18 on Windows x64
Where should I be looking to find debug notes/logs of a built version of my Unity game?
Right, thanks… I’ve been searching for how to find these “logs” and saw that supposedly in Windows the logs are in a hidden file from %APPDATA% but haven’t found any mention of a file (let alone a text file) related to logs. Additionally, within the project file there’s also no mention of a log, or whatever it is I may be looking for.
Perhaps this may be better: Does Unity have an option for viewing something like the console for when you’ve built your game?
Both
and
have given me no leeway into what I’ve tried to find.
“On Windows, a standard out stream doesn’t exist by default, so you must launch the Editor with a valid configured stdout stream, as a child process from a CI system. If you specify - to send output to stdout, then you won’t see the output in the console window.”
and sorry to disappoint, but I don’t understand how to do this or if this is even what I’m looking for…
As for what’s immediately below, when I look into the Editor log type (Location: %LOCALAPPDATA%\Unity\Editor\Editor.log) I can most definitely see the logs of how the editor is booting, running, and shutting down, but not where I could see something like Debug.Log messages for myself
That’s all I want. I just want to see if a Debug.Log("message here") statement is printed when I have selected the “Build & Run” option for my game.
I’ll just continue to comb through my code, but appreciate the help until now. I’m clearly missing something, but I only know what I know and that’s just making it even harder to find my answer. Sorry for any confusion thus far.
Let’s rewind and see if we can figure this out. You’re running Windows right? So you using the paths outlined for Windows. And you see the editor logs right? But as you point out this is only for the editor (and a few other categories that are editor-related). App logs shouldn’t write there because it would get confusing with lots of apps.
So do you have the project setup correctly such that a folder would exist to hold debug statements? And do you at least see the folders on your machine?
This is precisely what I was looking for! The messages are there, and I can also see that the sounds aren’t being found, which is leading to the main problem I’m having. I think I know where I can go from here! Thanks a ton!
This response is not helpful. This is a top google result when searching for information about Unity logging. It would be better to not answer at all than to give a response like this.
I’ve been struggling on where to find the player log files as well now for the past couple hours. I just had an idea though for a solution (and it should work ) - I think I will try creating my own C# class file that will simply open a file on my hard drive and write logs that way I can also control where the file is located too (which is good for me since C drive is fairly full).