Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnCancelButtonDeactivation Event
Example 
Event provided for extensibility of default InputActions. Intended to be used when the Cancel Button represents an "on / off" toggle, with one InputAction toggling it on (and therefore firing OnCancelButtonActivation) and a different InputAction toggling it off (and thus firing OnCancelButtonDeactivation).
Syntax
public event EventManager.CancelButtonDeactivation OnCancelButtonDeactivation
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnCancelButtonDeactivation += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnCancelButtonDeactivation -= myCustomListener;
    }
    
    void myCustomListener() {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
Event Invocation: EventManager.deactivateCancelButton

 

 


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

Send Feedback