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
Field Name | Description |
---|---|
Region | A defined area in a VR scene. This comes from a Named Region catalog. |
Optional Fields
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.
In Storyflow, create a Named Region Catalog if you do not already have one. In this example, I’ve named it “Scene Regions”:
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”:
Save the Catalog
Go to the Script you want the Scene Region authoring to be authored
Open the Script and add a Scene Region Resource by dragging it to the Resources pane of the frame:
Select “Workshop Region” from the Named Region catalog:
Add another Frame to the Script and give it an Inside Region Condition by dragging it to the Conditions pane of the frame
Use the Workshop Region in the Condition:
Add a Notification in the Resources pane of the script:
Save
This is what the learner will see in the headset:
View the video full screen on Vimeo at this link.