Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [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,
   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) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback