C# 클래스 UnityEngine.ClusterInput

Interface for reading and writing inputs in a Unity Cluster.

파일 보기 프로젝트 열기: CarlosHBC/UnityDecompiled 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

GetTrackerPosition() 공개 정적인 메소드

Return the position of a tracker as a Vector3.

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

GetTrackerRotation() 공개 정적인 메소드

Returns the rotation of a tracker as a Quaternion.

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

SetTrackerPosition() 공개 정적인 메소드

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.
리턴 void

SetTrackerRotation() 공개 정적인 메소드

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.
리턴 void