Immerseum SDK: VR Simulator (version: RC-1.0.0)
       [view as Desktop | Tablet | Mobile]
OnCancelButtonActivation Event
Example 

If default InputActions are enabled, fired when the default toggleCancelButtonInputAction has been received.

Be Aware Be Aware

The default InputAction configuration used by the VRSimulator assumes that the button is not toggle-able. This means this event will be fired each and every time the button is pressed, regardless of whether the button had been pressed before.

For More Information...
Syntax
public event EventManager.CancelButtonActivation OnCancelButtonActivation
Example
An example listener for the OnCancelButtonActivation event.
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnCancelButtonActivation += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnCancelButtonActivation -= myCustomListener;
    }
    
    void myCustomListener() {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members
Event Invocation: EventManager.activateCancelButton

 

 


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

Send Feedback