Hi all,
I’ve noticed an issue with the app I’m working on where it doesn’t look correct when reset, which I do by reloading scene 0. I made a simple test project to try and pin down the issue.
Currently I’ve got a camera which views a plane with a red material assigned. When you run the app in the Unity Editor, you just see a red square, as expected. I’ve added a simple script to reload scene 0 when the space key is pressed. When you do this however, 100% of the time, the screen goes black and the red square never reappears.
I can’t for the life of me see what I’m doing wrong. The Unity Editor’s scene window shows the plane is still present, it’s game object and components are all still active and have the right settings. In my full app, when deployed to an Android device, this doesn’t happen all the time but when it does it’s always the same plane which disappears. All my other visuals remain intact.
I’ve attached my stripped down project to this question. If you want to see this issue for yourself just download it, open the project, open the “main” scene if it doesn’t automatically, hit play and then tap space.
If anyone knows what’s going on with this please let me know and thanks in advance!
[68326-restarttest.zip|68326]