Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
setControllers Method
Integer which indicates the controller. Accepts either 0 (left-hand) or 1 (right-hand).
The object to be used as the indicated controller.
Sets controllerObject as the object for the simulated controller indicated by the value of controller.
Syntax
public static void setControllers( 
   int controller,
   UnityEngine.GameObject controllerObject
)

Parameters

controller
Integer which indicates the controller. Accepts either 0 (left-hand) or 1 (right-hand).
controllerObject
The object to be used as the indicated controller.
Exceptions
ExceptionDescription
IndexOutOfRangeExceptionThrown when controller is not 0 (left-hand) or 1 (right-hand).
See Also

Reference

HMDSimulator Class
HMDSimulator Members

 

 


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

Send Feedback