How to check if scene-gameObject is loaded in a 'parent' scene or playing back itself?

Hi
For an application I am loading several scenes when the application first launches(compile time?).
But for testing purposes I want the loaded scenes to ALSO work playing back by themselves, to add additional things like debugging, camera and lights, etc.

But how do I check for this?
I am trying checking to see if a ‘parent’ exists but that doesn’t work because initially even when loaded in another scene, there is NO parent, ie it equals null. I reparent the primary gameobject in these loaded scenes only after a small delay.

Hope this makes sense…and someone can suggest a ‘best practices’ solution…

Have a singleton in a given scene:

public static SomeScript instance;
void Awake() {
instance = this;
}

If SomeScript.instance != null, then you know that that scene is loaded. If it’s null, then you should load the scene.

Thanks but not quite what I need. I need to know if a particular scene is being loaded into another scene, or if it is playing back itself( ie NOT being loaded by-into another scene)

OP
This might be a workaround .
Check the scene count in the scene I am concerned about. If the count >1 then it can’t be a standalone scene