Finding objects in Prefab-Scene

When double clicking a Prefab you open the prefab in a separate scene.
But this scene breaks some editor functionality, since my scripts can’t find objects in this scene.
Also there is no way to find out if the prefab view was opened since EditorSceneManager.sceneOpened doesn’t get called.

Is there a workaround? I need to find out if the prefab scene was opened and access/ modify the objects within via editor script! :S

You can actually specify a scene in which to open prefabs. Check Edit → ProjectSettings → Editor:

6069537--657840--Screen Shot 2020-07-08 at 2.55.27 PM.png

Hey, yep I recall this setting. Didn’t try if this is opened as a regular scene.
I dug a little bit and found out that you can get the so called “PrefabStage” like this:

PrefabStageUtility.GetCurrentPrefabStage();

1 Like