Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnApplyColliderEnd Event
Example 
Fired at the conclusion of the OnApplyCollider event, when a collider has been applied/removed from a simulated controller.
Syntax
public event EventManager.ApplyColliderEndAction OnApplyColliderEnd
Example
A sample listener for the OnApplyColliderEnd event.
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnApplyColliderEnd += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnApplyColliderEnd -= myCustomListener;
    }
    
    void myCustomListener(int controller, bool removeCollider) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
Event Invocation: EventManager.endApplyCollider
OnApplyCollider

 

 


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

Send Feedback