Inside Region Condition

For an overview of Conditions, click here.

Deep Learning on Conditions is found in Motive Academy. Click here to see the course this lesson is in.

 

Overview

You can set up named regions in your scene that authors can use to trigger Events and actions in their Scripts. If the Scenario requires that actions take place in specific regions, set them up with descriptive names in the Scene and create a “Named Region” Catalog. Authors can now use these regions with the “Inside Region” Condition.

This is helpful to know if a user is in the right place before continuing or providing further information. As an example, Scene Regions can be used to know if the learner is in the Hearing Protection Region before we provide instructions on how to put on the hearing protection equipment.

Required Fields

 

2024-03-07_14-56-18.jpg

 

Field Name

Description

Field Name

Description

Region

A defined area in a VR scene. This comes from a Named Region catalog.

Optional Fields

Field Name

Description

Field Name

Description

Negate Result

Specifies if the result is negated.

If the object's state doesn't match with the specified object state, then the Condition is met.

Example in the Headset

In the Workshop environment, there is an area in the Scene that requires the learner to don a safety hat. Once they enter that region, a message will appear giving them instructions.

Before proceeding, an Assembler will need to follow these instructions to set up the Scene Regions in the SDK.

  1. In Storyflow, create a Named Region Catalog if you do not already have one. In this example, I’ve named it “Scene Regions”:

  1. Within the Catalog folder, click the “+” icon to add a new region and give it the same name that you gave the Scene Region in Unity. In this case, “Workshop Region”:

  1. Save the Catalog

  2. Go to the Script you want the Scene Region authoring to be authored

  3. Open the Script and add a Scene Region Resource by dragging it to the Resources pane of the frame:

  1. Select “Workshop Region” from the Named Region catalog:

  1. Add another Frame to the Script and give it an Inside Region Condition by dragging it to the Conditions pane of the frame

  2. Use the Workshop Region in the Condition:

  1. Add a Notification in the Resources pane of the script:

  1. Save

This is what the learner will see in the headset:

https://vimeo.com/720663786

View the video full screen on Vimeo at this link.

Related Articles

Add Conditions