Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnInstantiateController Event
Example 
Fired during initialization to instantiate a single specific simulated controller.
Syntax
public event EventManager.InstantiateControllerAction OnInstantiateController
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnInstantiateController += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnInstantiateController -= myCustomListener;
    }
    
    void myCustomListener(int controller, bool removeCollider) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback