Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
setCameraRig Method
Example 
The Transform of the CameraRig.
Sets the value of CameraRig.
Syntax
public static void setCameraRig( 
   UnityEngine.Transform cameraRigTransform
)

Parameters

cameraRigTransform
The Transform of the CameraRig.
Example
The following examples set the CameraRig for SteamVR and Oculus Rift respectively:
Finds the default SteamVR CameraRig and configures the HMDSimulator to use it.Finds the default Oculus Rift Utilities for Unity camera rig and sets it as the HMDSimulator's CameraRig.
GameObject cameraRigGameObject = GameObject.Find("[CameraRig]");
Transform cameraRigTransform = cameraRigGameObject.transform;
 
HMDSimulator.setCameraRig(cameraRigTransform);
GameObject oculusRiftCameraRig = GameObject.Find("OVRCameraRig");
Transform cameraRigTransform = oculusRiftCameraRig.transform;
 
HMDSimulator.setCameraRig(cameraRigTransform);
See Also

Reference

HMDSimulator Class
HMDSimulator Members
CameraRig Property

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback