Read the latest documentation here
Creating Scene Templates for Varwin in Unity¶
This video guide shows how to create a scene template for the Varwin RMS platform.
Creating scene templates¶
- Select an asset from Asset Store. Download and import it.
- Open the test scene that comes with the asset.
You can create a scene template for Varwin from virtually any Unity scene with game objects. Restrictions:
- The scene can’t have any scripts that don’t belong to Varwin SDK,
- There can be no cameras on the scene.
Don’t forget about light baking.
- Mark the colliders to which a player will be able to teleport with TeleportArea tag.
- Now you can build the scene template. Open Varwin SDK - Create - Scene Template.
- A window will open where you can name the scene template and give it a description. Fill in the information about the author of the scene template. You’ll also see a preview that will be used as an icon for your scene template.
At this stage, World Descriptor that contains 2 objects are automatically added:
- Preview camera - the only camera that can be placed at the scene. You can put it anywhere to get a nice preview.
- Spawn point - point where the player will appear when the scene template loads. The direction of the blue arrow shows the direction of the player’s eyes at the moment of spawn.
- When everything is ready, click Build and wait for the scene template file to be built.
- Upload the file into the Varwin library.
Creating a loading scene¶
You can create a custom loading scene. The users will see it at the moments of transition from one scene to another in the VR.
The loading scene is created in the same way as any scene template.
You can make the loading scene to display information about the loading process, or other data. To do it, apply script
LoaderFeedBackText.cs to any Unity object with Text or TextMeshPro component.