Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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.

Scene Region.mp4

Setup - Unity SDK

  • In the Hierarchy window find the World object

  • Right click on World and 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 and 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 scenario

  • Open the script and add a Scene Region resource

  • Select Workshop Region from the Named Region catalog

  • Add another frame and give it an Inside Region condition

  • Use the Workshop Region in the condition

  • Add a Notification in the resources section of the script and save it

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. The notification will appear

  • No labels