- Home /
What could cause my game to act differently after building.
I have a slightly modified mouse orbit script on my camera which works fine in the editor. When I build and run the game, the orbiting only works on 1 axis. I had a look at the input settings and they look correct. What else could be causing this issue or how can I debug it?
Answer by Tomer-Barkan · Dec 16, 2013 at 06:03 AM
First, check your logs to see if there are errors or exceptions. Second, are you testing on the same device? Third, some possible differences between editor and build could be around uninitialized variables. Last, add debug loga before and after rotating. Cant be more specific without seeing some code.
Alright. Be sure to check the logs and uninitialized variables first.
I checked the output log of the build and noticed some mainData corruption errors. Turns out it was because I still had the original JS $$anonymous$$ouseOrbit script in my assets with the same name as the one I wrote in C#. After deleting the old one everything now works.