DoNotDestroyAccessor.cs

CarterGames.MultiScene.Runtime
CarterGames.Experimental.MultiScene.DoNotDestroy

A class to allow access to the objects in the do not destroy scene when your game is in play-mode/build. This class just has methods similar to the Multi Scene Ref class, but all of them are solely focused on the do not destroy scene. In earlier versions of this asset this was an extensions to the core library. It has been added as a built-in feature from 0.2.0 as it has a lot of use-cases and no dependencies.

Methods

GetRootGameObjectsInDoNotDestroy

MoveObjectToSceneInDoNotDestroy

MoveObjectsToSceneInDoNotDestroy

FindObjectInDoNotDestroy

FindObjectsInDoNotDestroy

GetComponentInDoNotDestroy

GetComponentsInDoNotDestroy