Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

For an overview of Conditions, click here.

Panel
panelIconId1f393
panelIcon:mortar_board:
panelIconText🎓
bgColor#4C9AFF

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

Table of Contents
minLevel1
maxLevel7

Overview

You can set up named regions in your scene that authors can use to trigger events Events and actions in their scriptsScripts. If the scenario Scenario requires that actions take place in specific regions, set them up with descriptive names in the scene Scene and create a “Named Region” catalogCatalog. 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.jpgImage Added

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

...

  1. Catalog if you do not already have one. In this example, I’ve named it

...

  1. “Scene Regions”:

...

  1. Within the

...

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

...

  1. “Workshop Region”:

...

  1. Save the

...

  1. Catalog

  2. Go to the

...

  1. Script you want the Scene Region authoring to be authored

  2. Open the

...

  1. Script and add a Scene Region

...

  1. Resource by dragging it to the Resources pane of the frame:

...

  1. Select

...

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

...

  1. Add another

...

  1. Frame to the

...

  1. Script and give it an Inside Region

...

  1. Condition by dragging it to the Conditions pane of the frame

  2. Use the Workshop Region in the

...

  1. Condition:

...

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

...

  1. Save

This is what the learner will see in the headset:

...

View the video full screen on Vimeo at this link.

Related Articles

Add Conditions