So I have a game that work fine in unity, but when I build it, it just breaks. Like, scripts dont work like intended etc. Any idea why is that happening?
Without any information on how it should work, and what isn’t specifically working, it’s hard to give specific advice.
In any case the editor and a build are two different environments. Things work differently, or happen in an order (namely due to some order of things being non-deterministic). It’s possible you have things that only happen to work in the editor, but this non-determinism causes it to break in a build.
Use the player.log to see what errors are happening. Include debug.logs (which are printed in builds) to log information an errors. I believe you can hook up managed debugging tools to standalone builds to step through the execution. At the end of the day it’s just something that needs to be debugged.
Yeah, thats probably bc i used visual scripting with c# (before doing so it worked fine). I think il just code the game fully in c# (not really the entire game just the aspects of it that dont work). The reason I used visual scripting is I am not really good in c# (3 days experience), so I used VS in some places just because for me it was easier. Anyways ty for reply