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

Fired when a controller is initiating a move to a specific set of coordinates. This event is typically invoked by either:

.

Syntax
public event EventManager.MoveControllerPositionAction_Vector OnMoveControllerStart_Vector
Example
public class myClass : MonoBehaviour {
    void OnEnable() {
        EventManager.OnMoveControllerStart_Vector += myCustomListener;
    }
    
    void OnDisable() {
        EventManager.OnMoveControllerStart_Vector -= myCustomListener;
    }
    
    void myCustomListener(int controller, Vector3 targetOffset, Quaternion targetRotation, bool relativeToOrigin) {
        // Custom listener logic goes here.
    }
}
See Also

Reference

EventManager Class
EventManager Members

 

 


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

Send Feedback