Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

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.

Scene Anchor Demo.mp4

Setup - Unity SDK

  1. Open your Unity project and in the scene Hierarchy window find “World”

  2. Right-click on World then select (Create Empty) and name your new empty object

    1. Make sure you move the object to a space in the Workshop where you can easily see it, you can do this by playing with the Position values in the Transform component

  3. Right-click your newly made object and select (Motive > Make Scene Anchor)

  4. In the object’s Inspector window scroll down until you find the Motive Scene Anchor component

    1. Scroll to the bottom of the component and where it reads Name type in “Anchor1”

  5. Save the scene

Setup - Storyflow

  1. Open Storyflow and select the Catalogs tab

  2. If you do not have a “Named Anchor” catalog already, select (Create > Select Type > Named Anchor > (Type a name) > Create)

  3. Open your “Named Anchor“ catalog then select (+ > Named Anchor > (Type in “Anchor1”) > Save)

  4. Save the catalog

  5. Open the Scenarios tab and select (+ Add a New Script > (Type a name) >
    Checkmark > (Newly Created Script))

  6. 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 screen

    1. Select (Anchor + > (Your Named Object catalog) > Anchor1 > Save

  7. In the same grey area mentioned before put the Guide “Screen Message” resource there

    1. “Screen Message” can be typed into the Resource search bar for easy access

  8. Select the drop-down menu under Anchors and select Anchor1

  9. Under Text type “Great work”

  10. Select Save on the top left of the screen

  11. 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!

  • No labels