Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
In depth learning on Project Setup can be found in this course in Motive Academy. |
Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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
In the Hierarchy window find the World object
Right click on World
...
Select Create Empty
Name the new object My Region
Position the object where you want the center of your region to be
Add a collider and adjust the size. The size of the collider will be the bounds of your region.
Reposition if necessary
...
Save
Add a Scene Region
...
Script
Enter a Name
...
; for this example, we’ll call it Workshop Region
Save
Setup - Storyflow
In Storyflow, create a Named Region
...
Catalog if you do not already have one
Add an item and give it the same name that you gave the Scene Region in Unity. In this case, Workshop Region
Save the
...
Catalog
Create a new
...
Script and link it to a
...
Open the
...
Script and add a Scene Region
...
Select
...
“Workshop Region” from the Named Region
...
Catalog
Add another
...
Frame and give it an Inside Region
...
Use the
...
“Workshop Region” in the
...
Condition
Add a Notification
...
Resource to the Script
Save the Script
Test - Unity or VR Headset
Run the
...
Scenario linked to the
...
Script that was created in Storyflow
Teleport to an area inside the region that you created
...
You’ll see the Notification