For an overview of Resources, click here.
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 |
---|---|
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 |
---|---|
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
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.
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:
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:
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: