LoadSceneMode.Additive vs. GameObject.Find

I want to keep things like camera, UI, etc. central and thus put them into a central scene. I’m loading that with
SceneManager.LoadScene (“Central”, LoadSceneMode.Additive);
in the Start() function of an object of the level.

But it seems, that GameObject.Find (of an object of the level) can’t see the go’s of the additive scene. It just returns null, even though I can see the GameObject in the Unity UI.

How can I access them?
Or is there a better way to handle this situation?

From the docs: “Note: If the game is running with multiple scenes then Find will search in all of them.”

Are you sure there isn’t a typo, maybe an extra space, a capital letter?

There is likely a far better way to handle it, depends on the application though, care to shed some light on what you’re doing?

1 Like

Also scene load happens after the frame, in the same frame you won’t find anything from the new scene. The command LoadScene is just scheduling the scene load, it happens “between frames” (which is quite inaccurate, but demonstrates the idea.

1 Like

Thanks, Lurking-Ninja, that was exactly the problem.