User Tools

Site Tools


global:stages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
global:stages [2013/12/10 00:30]
Mistermind created
global:stages [2022/12/24 20:13]
FreedTerror
Line 3: Line 3:
 //Coming soon: Interactables// //Coming soon: Interactables//
  
-{{ :global:global_stages.jpg?nolink |}}+{{ :global:global_stages.png?nolink |}}
  
-**Stage Prefab:** A prefab containing your stage model. NoteYour stage must have a plane mesh under the layer "Ground". Check the TrainingRoom prefab example.+ 
 +---- 
 +===== Loading Method (PRO/Source) ===== 
 + 
 +**Stage Prefab/Stage Music** 
 +  * **Legacy:** Loads the prefab along with the game. 
 +  * **Resources Folder:** Loads the prefab files from the [[https://docs.unity3d.com/Manual/LoadingResourcesatRuntime.html|Resources folder]]. If this option is selected you need to write the path of the file into the fields that will appear under the stage options below.\\ Example: Type in ''Stages\Stage'' if the file is located under ''.Resources\Stages\Stage.prefab''. The Resources Folder can be placed anywhere in your project (there is one located under ''.UFE\''
 +  * **Scene File:** 
 + 
 + 
 +---- 
 +===== Stage Info ===== 
 + 
 +**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. **Stage Name:** The name of this stage.
Line 14: Line 29:
  
 **Right Boundary:** How far to the right 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.
 +
 +**Position:** The position of the ground.
  
 **Screenshot:** A screenshot of this stage. **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+===== Video Tutorial ===== 
 + 
 +{{youtube>JdqkKPhzM8E }} 
 + 
 + 
 +---- 
 +Code access
  
 ''UFE.config.selectedStage'' ''UFE.config.selectedStage''
  
 ''UFE.config.stages'' ''UFE.config.stages''
 +
 +Code example:
 +<code c#>Camera.main.audio.clip = UFE.config.selectedStage.music;</code>
 ---- ----
 +
 +[[global:start|< Back to Global Editor]]
global/stages.txt · Last modified: 2022/12/24 23:43 by FreedTerror