Scene Regions

In depth learning on Project Setup can be found in this course in Motive Academy.

Overview

A Scene Region is a defined area in the simulation. Once a Scene Region is created, it can be used in a Storyflow Script to know if the user is inside or outside of it. This is useful for triggering relevant content when the user is in a certain place within the simulation. This article will outline the process to set up a Scene Region in Unity and use it in a Storyflow script.

Video of the procedure defined below.

Setup - Unity SDK

  1. In the Hierarchy window find the World object

  2. Right click on World

  3. Select Create Empty

  4. Name the new object My Region

  5. Position the object where you want the center of your region to be

  6. Add a collider and adjust the size. The size of the collider will be the bounds of your region.

  7. Reposition if necessary

  8. Save

  9. Add a Scene Region Script

  10. Enter a Name; for this example, we’ll call it Workshop Region

  11. Save

Setup - Storyflow

  1. In Storyflow, create a Named Region Catalog if you do not already have one

  2. Add an item and give it the same name that you gave the Scene Region in Unity. In this case, Workshop Region

  3. Save the Catalog

  4. Create a new Script and link it to a Scenario

  5. Open the Script and add a Scene Region Resource

  6. Select “Workshop Region” from the Named Region Catalog

  7. Add another Frame and give it an Inside Region Condition

  8. Use the “Workshop Region” in the Condition

  9. Add a Notification Resource to the Script

  10. Save the Script

Test - Unity or VR Headset

  1. Run the Scenario linked to the Script that was created in Storyflow

  2. Teleport to an area inside the region that you created

  3. You’ll see the Notification

Related Articles

Recipes