Add a Simulator SDK to test your app using the Game View window. Test your VR app in Unity instead of building to a headset. SDK Setup switcher is also helpful when building for multiple devices.
Add VRTK Simulator SDK Setup Prefab
In the Assets window, navigate to VRTK > Source> SDK> Simulator to find the prefab named “[VRSimulator_CameraRig]”.
Drag this prefab into an empty child object as a child of the VRTK_SDK Manager (Script) Parent and rename it ‘Simulator SDK Setup’.
Add the VRTK_SDK Setup (Script) component onto your ‘Simulator SDK Setup’ object and set ‘Simulator (Standalone)’ as the SDK Selection.
Add SDK Setup Switcher Prefab
In the Assets window, navigate to ‘VRTK > Prefabs> SDKSetupSwitcher’ to find the prefab named “SDKSetupSwitcher”.
Drag this prefab into the hierarchy as a child of the VRTK_SDK Manager (Script) Parent.
Add Controller Alias Object
Create an empty game object outside of the VRTK_SDK Manager Parent. Add an empty child and rename it Right Controller Alias (if you don’t already have one). Move any/all VRTK controller, pointer and cursor scripts onto this game object.
Then be sure to declare this object as the Right Controller Script Alias in the VRTK_SDK Manager (Script) component. Finally, add your additional Simulator Setup and click Play! Use the control hints to learn how to navigate around. You can change the trigger alias and Button One Aliases on the VRTKSimulator_CameraRig component.
I hope this information will make learning VR easier and more enjoyable. One of the goals of ScenicMentor.com is to help designers work faster, giving them more time to create and more easily share their ideas with the world!
I’d love to hear comments or suggestions. Contact me here.