Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [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) 2016-2017 Immerseum Inc. All rights reserved.

Send Feedback