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

  1. Create a folder anywhere on Project.
  2. Decide on a folder name.(Example:SceneLayerProject)
    image
  3. Select [Right-click > Create > SceneLayer > Project] in the folder you created.
    image

Edit SceneLayer

  1. Select SceneLayerProject/Editor/SceneLayerProject on Project.
    image
  2. Click the Open Scene Layer Editor button on the Inspector.
    image
  3. SceneLayerEditor was opened.
    image

Create transition diagrams

  1. Select [Right-click > Add Layer] on the SceneLayerEditor.
    image
  2. Layer was created.
    image
  3. Click on the Layer created and give it any name on Inspector.
    Here, we use Title as an example.
    image
  4. Follow the same procedure to create another Layer and give it an arbitrary name on Inspector.
    Here we use ScreenSample as an example.
    image
  5. Select [Right-click > Create Transition] on the Title Layer.
    image
  6. Click on ScreenSample Layer to connect Transiton.
    image
  7. Click on the Transition created in step 6 and enter Tap in the Trigger property on Inspector.
    image

Create Scene

  1. Create two arbitrary scenes.
    Here we use Title.unity ScreenSample.unity as an example.
    image
  2. Place uGUI buttons on the Hierarchy of Title.unity.
    image
  3. Add a TriggerButton component to a GameObject that has a Button component.
    image
  4. Enter Tap in the Trigger property.
    image
  5. Put a Renderer in ScreenSample.unity for clarity.
    image
  6. Add Title.unity ScreenSample.unity in BuildSettings. image

Load Scene

  1. Click on Title Layer on the Scene Layer Editor.
  2. Click [+] on Inspector to create a SceneLoader.
    image
  3. Specify Title.unity for the Scene property.
    image
  4. Specify ScreenSample.unity for the ScreenSample Layer as well.
    image

Runtime Initialization

  1. Create a startup scene.
    Here we use Root.unity as an example.
    image
  2. Open Root.unity, create a GameObject and give it an arbitrary name. (Example: SceneLayerController)
    image
  3. Add a SceneLayerController component to the GameObject you created.
    image
  4. Add SceneLayerProject/Runtime/Entry to Entry on Inspector.
    image

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.
Animation2

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

For more detailed operations, see How to operate SceneLayerEditor.