I have a game I’m developing in Unity iPhone 1.7. Now, I’m having a problem that’s intermittent.
When I launch my game (a racer game) in the editor, it works perfectly. In the game your world is randomly generated, so objects are spawned before you while you race.
Now comes the problem: When I compile the game and launch it on my iPad, the entire game is corrupted.
The objects aren’t spawned a distance before you anymore, they are spawned 1 meter before you, so you instantly die when starting the game because of collisions. Sometimes you actually succeed in getting in-game, and I notice that for example the script that makes the steer of my bike tilt just doesn’t work. Also all the objects float in the air a bit and are rotated.
As I said, in the editor it works perfectly. I have no errors, no warnings, no errors/warnings during Xcode compilation. It’s all just great, untill you launch the game on the iPad. Also while playing the game with the console open in Xcode, I see no errors whatsoever.
Since this is probably an issue where Unity or Xcode messes up my scripts, there’s nothing much I can do myself, so I’m asking for your help.
By the way, I said the problem was intermittent, because 1 out of every 50 times I compile, it just works like in the editor. The next time I compile, it’s effed up again (even if I don’t make any changes to code at all), etc.