Creating Scene Templates for Varwin in Unity

Video Guide


Creating Scene Templates

  1. Select an asset from Asset Store. Download and import it.
../_images/image111.PNG
  1. Open the test scene that comes with the asset.
../_images/image86.png

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.

../_images/image124.png
  1. Mark the colliders to which a player will be able to teleport with TeleportArea tag.
../_images/image216.png
  1. Now you can build the scene template. Open Varwin SDK - Create - Scene Template.
../_images/image38.png
  1. 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.
../_images/image95.png

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.
../_images/image58.png
  • 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.
../_images/image67.png
  1. When everything is ready, click Build and wait for the scene template file to be built.
  2. Upload the file into the Varwin library.
../_images/image76.png
  1. Now you can create a project (manual: Creating VR Projects) and use your new scene template in it.
  2. Create new versions of existing objects/scene templates. Objects, scene templates versioning: instruction