Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
setControllerPrefab(GameObject) Method
Example 
The prefab to apply to both controllers.
Assigns a supplied prefab as the prefab to use when simulating both position-tracked controllers.
Syntax
public static void setControllerPrefab( 
   GameObject prefab
)

Parameters

prefab
The prefab to apply to both controllers.
Remarks
Erin, 7/20/2016.
Example
Instantiates the prefab and applies it to both simulated controllers.Clears the prefab from both controllers.
GameObject prefabObject = (GameObject)Instantiate(Resources.load("prefabName"));
 
setControllerPrefab(prefabObject);
setControllerPrefab(null);
See Also

Reference

HMDSimulator Class
HMDSimulator Members
Overload List

 

 


Copyright (c) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback