UI Anchor Resource

For an overview of Resources, click here.

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

 

Overview

The UI Anchor Resource attaches an Anchor to an object in the Scene. Anchors represent a position in the Scene. This Anchor should be used by UI Resources, such as Screen Message or Annotation. Compared to other Anchor Resources, this Resource provides additional optional fields that can enhance the learner interaction experience with UI panels.

Other Types of Anchors

Named Anchor (Catalog Type):  Anchor that exists inside the APK (predetermined) and is not configurable.  Scene Anchors are found here.

Scene Anchor Resource:   The Scene Anchor Resource attaches an Anchor to a Scene Object. Anchors represent a position in the Scene. This Anchor can be used by other Resources, such as the Screen Message and Move User Resources.

Unlike the Positional Anchor Resource, the Scene Anchor Resource simply attaches to a Scene Object within the Scene. Its position cannot be configured. 

Positional Anchor Resource: Positional Anchors represent a position in the Scene.

You can attach a Positional Anchor to a Screen Message, a sound, a 3D asset, and more. You can also use them with World Proximity Conditions to know if a learner has moved to a certain spot in the VR simulation.

These anchors are customizable as you can create and determine a custom position within the Scene either manually or using the  VR Editor.

Required Fields

 

Field Name

Description

Field Name

Description

Position

Specifies the position of the Anchor.

This position can be one of two types: Fixed Position or Relative Position.

The Fixed Position setting allows the author to configure the coordinates of the Positional Anchor, as well as its rotation.

The Relative Position setting allows the author to configure the angle, distance, and elevation of the Positional Anchor, as well as its rotation.

Optional Fields

Field Name

Description

Field Name

Description

Fix Position

If specified, this setting will prevent the Anchor from changing position.

Fix Orientation

If specified, this setting will prevent the Anchor from changing orientation (i.e. rotation, angle).

Events

Open and Activate.

Example in the Headset

In the Motive Lab, I want to display a screen message for the learner in front of the fume hood equipment.

  1. I will add the appropriate UI Anchor created for me by the Assemblers and found in the Project’s Catalogs. Typically this is in the Setup Frame. This will prevent me from having to manually set the coordinates:

  1. Next, I’ll add the UI Anchor Resource to the Script, attach the Anchor from the Setup Frame, and check the box to “Fix Position”. In this example, I’ve also changed the title:

 

  1. In the next Frame, I’ll script my messages for the learner. In this case, I’m using Screen Messages-Playable Content:

 

Here are the Frames from the above scripting:

 

Here is the view from the headset:

Related Articles

Positional Anchor Resource

Scene Anchor Resource

Fixed and Relative Positions