I am trying to have one script that can be reused to temporarily save scenes and another script to apply and then delete the scenes.
I use input fields in order to have variable scene names.
In my scripts I want to check if the scene with that name exists before saving it or applying it, in order to avoid overwriting scenes or applying scenes that don't exist.
The problem seems to be writing a condition that checks if a scene exists. It doesn't seem to work for me when the scene is "freshly created". Then all my attempts at conditions return "false - the scene doesn't exist" but I can see the scene under the scenes tab in the web GUI.
Why does this happen? Can I flush the new scene to the system so my conditions work immediately, or is there some other magic I have to understand in order to get this to work?
Thanks for any help π