Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
endInstantiateController Method
Example 
Integer which identifies which simulated controller being instantiated. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
If true, removes the Collider from the simulated controller after instantiation. If false, leaves the Collider and applies properties as per the ControllerManager's settings.

Fires the OnInstantiateControllerEnd event.

Be Aware Be Aware

Listeners are expected to have a return type of void and to accept the same parameters as this method (see below).

Syntax
public static void endInstantiateController( 
   int controller,
   bool removeCollider
)

Parameters

controller
Integer which identifies which simulated controller being instantiated. Accepts 0 for the left-hand controller, and 1 for the right-hand controller.
removeCollider
If true, removes the Collider from the simulated controller after instantiation. If false, leaves the Collider and applies properties as per the ControllerManager's settings.
Example
// Ends the instantation process for both simulated controllers, applying a collider based on
// ControllerManager properties.
EventManager.endInstantiateController(0, !ControllerManager.applyCollider);
EventManager.endInstantiateController(1, !ControllerManager.applyCollider);
See Also

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback