Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconId1f393
panelIcon:mortar_board:
panelIconText🎓
bgColor#4C9AFF

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

Table of Contents
minLevel1
maxLevel6
outlinefalse
typelist
printablefalse

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 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.

...

Setup - Unity SDK

  1. In the Hierarchy window find the World object

  2. Right click on World

...

  1. Select Create Empty

  2. Name the new object My Region

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

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

  5. Reposition if necessary

...

  1. Save

  2. Add a Scene Region

...

  1. Script

  2. Enter a Name

...

  1. ; for this example, we’ll call it Workshop Region

  2. Save

Setup - Storyflow

  1. In Storyflow, create a Named Region

...

  1. 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

...

  1. Catalog

  2. Create a new

...

  1. Script and link it to a

...

  1. Scenario

  2. Open the

...

  1. Script and add a Scene Region

...

  1. Resource

  2. Select

...

  1. “Workshop Region” from the Named Region

...

  1. Catalog

  2. Add another

...

  1. Frame and give it an Inside Region

...

  1. Condition

  2. Use the

...

  1. “Workshop Region” in the

...

  1. Condition

  2. Add a Notification

...

  1. Resource to the Script

  2. Save the Script

Test - Unity or VR Headset

  1. Run the

...

  1. Scenario linked to the

...

  1. Script that was created in Storyflow

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

...

  1. You’ll see the Notification

Related Articles

Recipes