Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
HMDSimulator Class Members
Properties  Methods 

The following tables list the members exposed by HMDSimulator.

Public Constructors
 NameDescription
Public ConstructorHMDSimulator Constructor  
Top
Public Properties
 NameDescription
Public Propertystatic (Shared in Visual Basic)cameraInitializationTimeout Gets the number of seconds that the system should attempt to establish a connection with an HMD.  
Public Propertystatic (Shared in Visual Basic)CameraRigThe Transform of the GameObject you are using as your VR CameraRig.  
Public Propertystatic (Shared in Visual Basic)controllerPrimitiveIf simulateControllers is set to true, will return the Unity primitive that will be used to simulate position-tracked controllers.  
Public Propertystatic (Shared in Visual Basic)disableInStandaloneBuildIndicates whether the VR Simulator should be disabled when running in a standalone build.  
Public Propertystatic (Shared in Visual Basic)getCameraReturns the UnityEngine.Transform of the camera UnityEngine.GameObject.  
Public Propertystatic (Shared in Visual Basic)getCameraContainerGets the UnityEngine.Transform of the Camera Container.  
Public Propertystatic (Shared in Visual Basic)hasColliderIndicates whether the Camera Rig or its relatives in the hierarchy have a Collider attached.  
Public Propertystatic (Shared in Visual Basic)headHeight Returns the height (in meters / unity units) of the camera's position.  
Public Propertystatic (Shared in Visual Basic)heightTarget Indicates the camera height that you wish to simulate.  
Public Propertystatic (Shared in Visual Basic)hmdFamilyThe family of HMD which is currently connected.  
Public Propertystatic (Shared in Visual Basic)InstanceThe singleton Instance of the HMDSimulator class.  
Public Propertystatic (Shared in Visual Basic)isCameraInitializationComplete Gets a value indicating whether the Camera Initialization process has been completed.  
Public Propertystatic (Shared in Visual Basic)isCameraRigPresentIndicates whether a supported Camera Rig GameObject is present within the scene or not.  
Public Propertystatic (Shared in Visual Basic)isGamepadConnected Indicates whether the user has a gamepad connected to the platform.  
Public Propertystatic (Shared in Visual Basic)isHMDConnected Indicates whether there is a VR Head-Mounted Display (HMD) connected to the user's system.  
Public Propertystatic (Shared in Visual Basic)isOculusHMDConnectedIndicates whether there is an Oculus Rift HMD connected to the user's system.  
Public Propertystatic (Shared in Visual Basic)isPlaystationVRHMDConnected Indicates whether a PlayStation VR is connected to the user's system.  
Public Propertystatic (Shared in Visual Basic)isRemoteConnectedIndicates whether the user has an Oculus Remote connected to their computer.  
Public Propertystatic (Shared in Visual Basic)isSteamVRHMDConnectedIndicates whether a SteamVR HMD (e.g. an HTC Vive) is connected to the user's system.  
Public Propertystatic (Shared in Visual Basic)isTrackingHands

Indicates whether the user's VR system is positionally tracking their hands (i.e. by way of a positionally-tracked handheld controller, such as the HTC Wands or the Oculus Touch).

 
Public Propertystatic (Shared in Visual Basic)isUsingOVRPlayerControllerIndicates whether the scene is actively making use of the OVRPlayerController prefab from the Oculus Utilities for Unity.  
Public Propertystatic (Shared in Visual Basic)isUsingProfileDataIndicates whether the scene or character controller is using the HMD's stored profile data.  
Public Propertystatic (Shared in Visual Basic)isUsingSteamRig Indicates whether the scene (and HMD Simulator) is using a SteamVR CameraRig.  
Public Propertystatic (Shared in Visual Basic)leftController The instance of the simulated left-hand controller in your scene.  
Public Propertystatic (Shared in Visual Basic)leftControllerPrefab

Returns the prefab GameObject that will be used to simulate the left-hand controller. Can be any prefab you wish.

 
Public Propertystatic (Shared in Visual Basic)logDiagnosticsGets a value indicating whether Diagnostic Information should be logged to the console.  
Public Propertystatic (Shared in Visual Basic)logInputActionsGets a value indicating whether InputAction events should be logged to the console.  
Public Propertystatic (Shared in Visual Basic)primitiveScalingIf simulateControllers is set to true and controllerPrimitive is not Custom, returns the scaling factor to apply to the controller primitive.  
Public Propertystatic (Shared in Visual Basic)rightController The instance of the simulated right-hand controller in your scene.  
Public Propertystatic (Shared in Visual Basic)rightControllerPrefab

Returns the prefab GameObject that will be used to simulate the right-hand controller. Can be any prefab you wish.

 
Public Propertystatic (Shared in Visual Basic)simulateControllersIndicates whether to simulate position-tracked controllers or not.  
Top
Public Methods
 NameDescription
Public Methodstatic (Shared in Visual Basic)getDefaultHeadHeightReturns the default Head Height for given HeightTargets value.  
Public Methodstatic (Shared in Visual Basic)isCameraRigInTransformIndicates whether the Camera Rig is related to the Transform passed to this method.  
Public Methodstatic (Shared in Visual Basic)setCameraRigSets the value of CameraRig.  
Public Methodstatic (Shared in Visual Basic)setControllerPrefabOverloaded. Assigns a supplied prefab as the prefab to use when simulating an indicated position-tracked controller.  
Public Methodstatic (Shared in Visual Basic)setControllersSets controllerObject as the object for the simulated controller indicated by the value of controller.  
Top
See Also

Reference

HMDSimulator Class
Immerseum.VRSimulator Namespace

 

 


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

Send Feedback