About Samples - Katsuya100/SceneLayer-Trial GitHub Wiki
SceneLayerSample
Summary
These samples are a brief introduction to the functions of SceneLayer.
Tutorials are provided for each sample.
You can try out what functions are available by actually operating the samples.
Basic Operation
Sample Structure
The following folder structure is unified for each sample.
- 0x_SampleName
- Resources
- SceneLayerProject(SceneLayer Project Folder.)
- Editor
- SceneLayerProject.asset(SceneLayer project file for editor.)
- SceneLayerThumbnail.asset(Thumbnail data.)
- Runtime
- Entry.asset(Entry point data of SceneLayer.)
:
- Entry.asset(Entry point data of SceneLayer.)
- Editor
- Scenes
- Scripts
- xxxxSample.unity(Sample start scene.)
Sample Verification Procedure
- Open the folder of the sample you want to display.
- Open the Sample start scene (see above)
- Click on the SceneLayer project file for the editor (see above).
- Select
Open Scene Layer Editor
from Inspector.
The SceneLayerEditor can be used to check the transition state of the scene and the loading state.
You can check the operation in Play mode or Edit the diagram according to the official documentation.
For detailed instructions, please refer to "Creating Transition Diagrams" in the official documentation.
Sample Explanation
01_LoadSample
First, we will learn how to display a scene.
This is a sample that dynamically loads a scene or Prefab.
Challenge
Click on "Layer" and you will see that two Loaders are attached.
Let's replace them with other scenes and Prefab to see how they work.
02_TransitionSample
This is a sample of transition processing.
A transition from SceneA to SceneB is written.
Challenge
Let's make it possible to transition from SceneB to SceneA as well.
To perform transitions with Trigger, we need to use the Trigger.Set([event name])
function.
03_ChildLayerSample
this is a sample for creating a child layer.
Challenge
Create a new layer directly under [Root] and
Let's write a transition from the Parent
layer.
When you leave the Parent
layer, you will see that all child layers are released.
04_CustomBehaviour
This is the process of customizing Behaviour.
- Transition that automatically transitions when a password is entered
- Loader to play SE
which plays a Transition SE that automatically transitions when a password is entered.
Challenge
We have a custom Root layer.
Let's write a fade-out/in process and see how it works.
99_GameSample
This is an example of a use case in game creation.
No challenges are provided for this sample.
Feel free to modify it and use it to verify the behavior.
About images, animations and other materials
Unity assets are used in 99_GameSample
.
© Unity Technologies Japan/UCL
About sound materials
Material sounds distributed by OtoLogic are used.
License: CC BY 4.0
If you want to use the full version of SceneLayer
- delete com.katuusagi.scenelayer from [Windows > PackageManager].
- Import the commercial version of SceneLayer.
- Right-click on
Assets
in the Project Browser. - Execute [SceneLayer > Repair GUID].