C# Class UnityEngine.ClusterInput

Interface for reading and writing inputs in a Unity Cluster.

Show file Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetTrackerPosition ( string name ) : Vector3

Return the position of a tracker as a Vector3.

GetTrackerRotation ( string name ) : Quaternion

Returns the rotation of a tracker as a Quaternion.

SetTrackerPosition ( string name, Vector3 value ) : void

Sets the tracker position for this input. Only works for input typed Custom.

SetTrackerRotation ( string name, Quaternion value ) : void

Sets the tracker rotation for this input. Only works for input typed Custom.

Private Methods

Method Description
AddInput ( string name, string deviceName, string serverUrl, int index, ClusterInputType type ) : bool
CheckConnectionToServer ( string name ) : bool
EditInput ( string name, string deviceName, string serverUrl, int index, ClusterInputType type ) : bool
GetAxis ( string name ) : float
GetButton ( string name ) : bool
INTERNAL_CALL_GetTrackerPosition ( string name, Vector3 &value ) : void
INTERNAL_CALL_GetTrackerRotation ( string name, Quaternion &value ) : void
INTERNAL_CALL_SetTrackerPosition ( string name, Vector3 &value ) : void
INTERNAL_CALL_SetTrackerRotation ( string name, Quaternion &value ) : void
SetAxis ( string name, float value ) : void
SetButton ( string name, bool value ) : void

Method Details

GetTrackerPosition() public static method

Return the position of a tracker as a Vector3.

public static GetTrackerPosition ( string name ) : Vector3
name string Name of input to poll.
return Vector3

GetTrackerRotation() public static method

Returns the rotation of a tracker as a Quaternion.

public static GetTrackerRotation ( string name ) : Quaternion
name string Name of input to poll.
return Quaternion

SetTrackerPosition() public static method

Sets the tracker position for this input. Only works for input typed Custom.

public static SetTrackerPosition ( string name, Vector3 value ) : void
name string Name of input to modify.
value Vector3 Value to set.
return void

SetTrackerRotation() public static method

Sets the tracker rotation for this input. Only works for input typed Custom.

public static SetTrackerRotation ( string name, Quaternion value ) : void
name string Name of input to modify.
value Quaternion Value to set.
return void