Quick Start - Katsuya100/SceneLayer-Trial GitHub Wiki
Summary
Here is a simple introduction for those new to SceneLayer.
The goal of the quick start is to be able to transition from the title to another scene in Play mode.
Steps
Create SceneLayerProject
- Create a folder anywhere on Project.
- Decide on a folder name.(Example:
SceneLayerProject)

- Select [Right-click > Create > SceneLayer > Project] in the folder you created.

Edit SceneLayer
- Select
SceneLayerProject/Editor/SceneLayerProjecton Project.

- Click the
Open Scene Layer Editorbutton on the Inspector.

- SceneLayerEditor was opened.

Create transition diagrams
- Select [Right-click > Add Layer] on the SceneLayerEditor.

Layerwas created.

- Click on the
Layercreated and give it any name on Inspector.
Here, we useTitleas an example.

- Follow the same procedure to create another
Layerand give it an arbitrary name on Inspector.
Here we useScreenSampleas an example.

- Select [Right-click > Create Transition] on the
TitleLayer.

- Click on
ScreenSampleLayer to connectTransiton.

- Click on the
Transitioncreated in step 6 and enterTapin theTriggerproperty on Inspector.

Create Scene
- Create two arbitrary scenes.
Here we useTitle.unityScreenSample.unityas an example.

- Place uGUI buttons on the Hierarchy of
Title.unity.

- Add a
TriggerButtoncomponent to a GameObject that has aButtoncomponent.

- Enter
Tapin theTriggerproperty.

- Put a Renderer in
ScreenSample.unityfor clarity.

- Add
Title.unityScreenSample.unityin BuildSettings.
Load Scene
- Click on
TitleLayer on theScene Layer Editor. - Click [+] on Inspector to create a
SceneLoader.

- Specify
Title.unityfor theSceneproperty.

- Specify
ScreenSample.unityfor theScreenSampleLayer as well.

Runtime Initialization
- Create a startup scene.
Here we useRoot.unityas an example.

- Open
Root.unity, create a GameObject and give it an arbitrary name. (Example: SceneLayerController)

- Add a
SceneLayerControllercomponent to the GameObject you created.

- Add
SceneLayerProject/Runtime/Entryto Entry on Inspector.

Playmode Test
Put Root.unity in Play mode and you will see that the Title.unity you just created is loaded.
Click the Tap button to transition from Title.unity to ScreenSample.unity.

From here, various scene changes can be realized by creating Layers and Transitions.

For more detailed operations, see How to operate SceneLayerEditor.