Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
OnApplyCollider Event
Example 

Fired during the instantiation of a simulated controller. During this event, colliders are applied to a specific simulated controller based on the configuration settings in the ControllerManager.

Syntax
public event EventManager.ApplyColliderAction OnApplyCollider
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnApplyCollider += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnApplyCollider -= myCustomListener;
    }
    
    void myCustomListener(int controller, bool removeCollider) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
Event Invocation: EventManager.applyCollider

 

 


Copyright (c) 2015 Immerseum Inc. All rights reserved.

Send Feedback