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.
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 both a screen message and a warning for the learner in front of the fume hood equipment.
I will add the appropriate UI Anchors 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 two UI Anchor Resources to the script, attach the anchors from the Setup Frame, and check the box to “Fix Position”:
In the next frame, I’ll script my messages for the learner. In this case, I’m using Screen Messages (one Playable Content and one Guide):
Here are the frames from the above scripting:
Here is the view from the headset: