MultiSceneRef.cs

CarterGames.MultiScene.Runtime
CarterGames.Experimental.MultiScene

The main way to reference between scenes in the multi scene asset. This class gives you a load of methods to help with getting references between scenes. It is important to note that the scene with the element you are trying to reference has to be loaded to make a valid reference. It is advised to only reference in scenes loaded before the one the reference is being made in or to wait until all the scenes have loaded which can be listened for with the IMultiSceneAwake/Enable/Start Interfaces & the PostScenesLoaded event.

Methods

GetRootObjects

MoveObjectToScene

MoveObjectsToScene

FindObject

FindObjects

GetComponentFromActiveScene

GetComponentFromScene

GetComponentFromScenes

GetComponentFromAllScenes

GetComponentsFromActiveScene

GetComponentsFromScene

GetComponentsFromScenes

GetComponentsFromAllScenes