0c Unity Maya Vive
Teleport, Throw, and Interact with Animation


In Unity:
Select New
Give your project a name such as 0c_Tutorial

Import SteamVR

Type SteamVR in the search bar of the Asset Store tab.

Add the SteamVR Player Prefab to your scene
Select the SteamVR folder from the Project tab
Select the arrow, open InteractionSystem, open Core, select Prefabs
Drag the Player into the Hierarchy tab

Script to help the SteamVR simulator work
This helps throwing objects and starting animation when you do not have a headset.
Written by Alex Rickett
Download this file 
Place the file in your Assets folder
Drag and drop this script onto the Player->NoSteamVRFallbackObjects->FallbackHand in your Hierarchy

Setup the Main Camera
Select the Main Camera from the Hierarchy tab
     Change Target Display to Display 2,
Change Target Eye to None in Inspector

Drag in the Teleporting prefab
from SteamVR->InteractionSystem->Teleport->Prefabs into the Hierarchy tab.

Create a floor, GameObject->3D Object->Cube.

Make a Plane for the teleport area. GameObject->3D Object->Plane It should be located above your cube

Add the Teleport Area component to the plane
     Select the plane, use Add Component
          search for tele select Teleport Area
This will allow the player to teleport anywhere along this plane.

Save your scene.

You can now test your scene by selecting the Play arrow.

Throwable Cube and Maya Polys
Create a cube, GameObject->3D Object->Cube

Select the cube, use Add Component
     search for throw select Throwable

Maya objects can be throwable too.
    Add Component->Physics->Collider 
     Choose the closest shape.
     You may need to edit the collider shape with Edit Collider in the Inspector.

Interact to activate a Maya Animation

In Maya:
Model an animated poly object
Save the Maya scene file into your Unity project->Assets

In Unity:
Add your Maya File to your scene

Select Assets in the Project tab
Drag your Maya model from the Assets list over to the Hierarchy tab.

Use Legacy to pause the animation until selected.
Select your Maya Model in the Assets area
Switch to the Rig tab in the Inspector on the right.
     Change Animation Type to Legacy  (default was Generic)
     Hit Apply
Switch to the Animation tab
Rename Take 001 to a unique name

Select the
Maya Model in the Hierarchy

     Uncheck Play Automatically in the Inspector
     (This feature does not exists in the newer software, hence legacy)

Add Interaction to the Model
Select the Maya Model in the Hierarchy
    Add Component->Physics->Collider 
     Choose the closest shape.
     You may need to Edit the shape from Edit Collider in the Inspector.

Use Add Component

     Search for inter
     Select Interactable Hover Events
Hit the + under On Hand Hover Begin () in the Inspector

Drag and drop Maya Model from the Hierarchy onto None (obj) in the Inspector
Click the drop down menu reading No function
and choose Animation->CrossFade
Type Take 001 (use the new unique name) in the empty box below


your scene.

You can now test your scene by selecting the Play arrow. Your animated object will start its animation when you grab it with a trigger.

If you are running in Sim
mode use wasd or the arrow buttons to navigate around the scene,

OBS screen capture VR documentation

**IMPORTANT Save a spare copy of your Maya scene files and Textures in another folder away from your Unity project.