Preload - Katsuya100/SceneLayer-Trial GitHub Wiki

You may want to perform a pre-Load process while in the previous scene, for example, when you want to optimize the scene.
Or you may want to return to the current scene immediately.
You may want to keep the used objects without releasing them after the transition.
In such cases, the Preload can be utilized.

First, find the Loader you want to preload from the Layer inspector.
image

Select [Advanced Options > Load From].
image

A popup will appear, allowing you to specify at which Layer you wish to preload.
In this case, the Layer to be preloaded will be highlighted in the SceneLayerEditor.
image image

In the example in the above image, a Prefab used in a Layer called InGamePlay is loaded in a Layer called Ready.

注意点

Note that an error will occur if the path does not go through to your Layer.
If the path is not followed, the error is visualized like this.
image