Immerseum SDK: VR Simulator (version: BETA-0.9)
       [view as Desktop | Tablet | Mobile]
OnMoveControllerStart Event
Example 

Fired when a controller is initiating a move. This event is typically invoked by either:

Syntax
public event EventManager.MoveControllerPositionAction OnMoveControllerStart
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnMoveControllerStart += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnMoveControllerStart -= myCustomListener;
    }
    
    void myCustomListener(int controller, ControllerPositions targetPosition) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback