Hi to everyone. I apologize since now for my english. I’m making a 2D arcade shoot-em-'up game, in which you control a spaceship that has to destroy other ones. On a day, a problem has appeared in my project: The spaceship will be suddenly destroied during game execution, disappearing from the scene (I’m saying “destroied” because, if I pause the game and return to the scene view, the spaceship is no more on the scene - and that’s definitely not a rendering problem).
I noticed two things:
-
My Unity, during the period in which the problem appeared, crashed. As a consequence, “Player” prefab, that’s the spaceship, lost its “box”-icon, and I had to re-imported it. After that, however, the icon reappeared, and that’s no track of damaged data.
-
The spaceship (generally) disappears when an object never seen before is rendered on the scene (example: an enemy type appearing in the game for the first time). The game has a little framerate loss (I’m speaking about an half second duration) and, when the framerate turns back to normal, the spaceship is no more on the scene.
If i replay the game, the situation seems going better, with the ship that remains on the scene, until the next “new” object rendered (but, I repeat, it’s possible that the player disappears also during a “calm” situation, even with a lower probability)
Nobody encountered a similar problem before? Thanks to all for the reading, I apoligize for the topic lenght and I hope to have reported sufficient informations.
Andrea
Don't apologize for your english! You are more polite that 90% of the internet. Reading your question just made my day!
– syclamothHey! I've really appreciated that! Thank you ;)
– BiG