This is an old revision of the document!
Here you can setup the stages in your game. Coming soon: Interactables
Stage Prefab/Stage Music
Stages\Stage.prefab
if the file is located under .Resources\Stages\Stage.prefab
..UFE\
)Stage Prefab (Legacy): A prefab containing your stage model.
Stage/Music Resource Path: Write the path of the file beginning from the Resources folder.
Stage Name: The name of this stage.
Music: A song that will be played during the game when this stage is selected.
Left Boundary: How far to the left the characters can walk to.
Right Boundary: How far to the right the characters can walk to.
Ground Friction: How “slippery” the ground is. The smaller the value, the more slippery it is.
Screenshot: A screenshot of this stage.
Note: Your stage prefab must have a plane mesh under the layer “Ground”. Check the Training Room prefab example.
Code access:
UFE.config.selectedStage
UFE.config.stages
Code example:
Camera.main.audio.clip = UFE.config.selectedStage.music;