Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
OnApplyRigidbodyEnd Event
Example 
Fired at the conclusion of the OnApplyRigidbody event, when a rigidbodyhttps://docs.unity3d.com/ScriptReference/Rigidbody.html%% has been applied/removed from a simulated controller.
Syntax
public event EventManager.ApplyRigidbodyEndAction OnApplyRigidbodyEnd
Example
A sample listener for the OnApplyRigidbodyEnd event.
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnApplyRigidbodyEnd += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnApplyRigidbodyEnd -= myCustomListener;
    }
    
    void myCustomListener(int controller) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
OnApplyRigidbody
Event Invocation: EventManager.endApplyRigidbody

 

 


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

Send Feedback