Objects randomly disappear when running the game multiple times without any changes

It is probably because of a z-fighting issue. I bet all your game objects have the same Z value, so they are fighting each other. You might try changing them a little, something like:

  • Background: Z = 0.0
  • Stars: Z = 0.1
  • Ship: Z = 0.2

This should help prevent z-fighting.

10 Likes