I have been building a 2D platformer and I have been coming across a very strange behaviour.
When I run the game, about 4 out of 5 times some or all of the game objects in the scene immediately position themselves to 0,0,0. Most of these game objects don’t have any scripts attached, but do have a BoxCollider2D and a RigidBody2D.
This means that every time I want to run the game, I have to play and stop it several times until I find an instance when the game objects are all in their correct positions. No settings change between these runs so I am at a loss as to what is causing it. Has anyone encountered this behaviour before or have any idea what might be causing it?