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

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback