Overview
This article describes how you can implement Motive’s premade Scene Anchor component in order to easily anchor objects in a VR scene. With a few minor changes made in Unity, this functionality allows for easy and fast spawning using Storyflow, which this tutorial will also cover.
Important: Any object that will be used as part of a training procedure authored in Storyflow must be a Motive Scene Object, however, the Motive Scene Anchor component also works.
Setup - Unity SDK
Open your Unity project and in the scene Hierarchy window find “World”
Right-click on World then select (Create Empty) and name your new empty object
Right-click your newly made object and select (Motive > Make Scene Anchor)
In the object’s Inspector window scroll down until you find the Motive Scene Anchor component
Scroll to the bottom of the component and where it reads Name type in “Anchor1”
Save the scene
Setup - Storyflow
Open Storyflow and select the Catalogs tab
If you do not have a “Named Anchor” catalog already, select (Create > Select Type > Named Anchor > (Type a name) > Create)
Open your “Named Anchor“ catalog then select (+ > Named Anchor > (Type in “Anchor1”) > Save)
Save the catalog
Open the Scenarios tab and select (+ Add a New Script > (Type a name) >
Checkmark > (Newly Created Script))Under Resources on the right side of the screen click and drag the “Scene Anchor” resource into
the grey area in the center of the screenSelect (Anchor + > (Your Named Object catalog) > Anchor1 > Save
In the same grey area mentioned before put the Guide “Screen Message” resource there
“Screen Message” can be typed into the Resource search bar for easy access
Select the drop-down menu under Anchors and select Anchor1
Under Text type “Great work”
Select Save on the top left of the screen
Next, select the Project tab on the top of your screen then go (Create > Script + >
[Project name] Scripts > (Your new script) > Title > (Type a new scenario title) >
Save)
You can now open your Unity project select the newly created scenario, and see your newly made notification!