It’s also worth noting that the Log file has a lot of clues that can help you out. If it’s a simple error you might not even need your own Debug statements.
Well, something weird is happening. I put a Debug line in that should count the number of collisions and according to the Debug report the game only generates one collision, which is what is happening in the build, but for some reason the game keeps functioning in the editor with explosions and scoring and such, but never generating another collision.
Will need to further investigate, but I think I’m on the right track.
I noticed the explosions were building up in the hierarchy, so I added my own line to destroy the explosions. It wasn’t until a couple lessons later the instructor points out the explosions accumulating and says using the destroy wouldn’t work in this case and he used destroy by time.
Since my game was working in the editor (but giving an error) I just left it the way I had it. But the editor must be more forgiving, because it wouldn’t work in the build. After figuring out where the issue lie, I re-watched the tutorial, changed from my destroy line to the destroy by time and the build now works. Yay!
The instructor never did explain why we could destroy the bolt, asteroid, & ship with a basic destroy command, but not the explosion. Would be nice to know. I’m just glad I was able to figure it out.
@Game_Changer2100 : I did as the instructions say. integration worked and I added the log entries in the scripts. Where do I find the logs?
From the instructions (“High-Performance Portable Log Window for unity”) I would expect something like an additional window, or a subwindow in game, but there is none. could you plz add some more info what to expect, and how to get hands on?
(Using untiy 2019.2.17.f1)
thx
Somehow this log doesnt work anymore, it is created but I dont see my own entries. Just tons of error and stack traces. My game has a main menu to start game and it should print to log while thats showing but it doesnt. How to get a proper log of things we sent to Debug.log?