Class TuringStylus
- Namespace
- Turing.Core.TuringInput
- Assembly
- Turing.Core.dll
public class TuringStylus : TuringPointer
- Inheritance
-
ObjectComponentBehaviourMonoBehaviourTuringStylus
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.CancelInvoke()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.useGUILayoutMonoBehaviour.runInEditModeBehaviour.enabledBehaviour.isActiveAndEnabledComponent.GetComponent<T>()Component.TryGetComponent<T>(out T)Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentInParent<T>()Component.GetComponentsInParent<T>()Component.GetComponents<T>()Component.transformComponent.gameObjectComponent.tagObject.GetInstanceID()Object.GetHashCode()Object.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object, Vector3, Quaternion, Transform)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DontDestroyOnLoad(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.FindObjectsByType<T>(FindObjectsSortMode)Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)Object.FindObjectOfType<T>()Object.FindFirstObjectByType<T>()Object.FindAnyObjectByType<T>()Object.FindFirstObjectByType<T>(FindObjectsInactive)Object.FindAnyObjectByType<T>(FindObjectsInactive)Object.ToString()Object.nameObject.hideFlags
- Extension Methods
Fields
_target
public TuringTarget _target
Field Value
Properties
ButtonCount
The number of buttons supported by the stylus.
public override int ButtonCount { get; }
Property Value
HatPoint
public Vector3 HatPoint { get; }
Property Value
- Vector3
Id
The unique id of the stylus pointer.
public override int Id { get; }
Property Value
IsVisible
The current visibility state of the stylus.
public override bool IsVisible { get; }
Property Value
ScrollDelta
The current scroll delta of the stylus.
public override Vector2 ScrollDelta { get; }
Property Value
- Vector2
Remarks
Since the stylus has not scroll support, the current implementation is hard-coded to the zero vector.
TipPoint
public Vector3 TipPoint { get; }
Property Value
- Vector3
TrackerPose
The pose of the stylus in tracker space.
public Pose TrackerPose { get; }
Property Value
- Pose
Methods
Awake()
protected override void Awake()
ComputeWorldPose()
protected override Pose ComputeWorldPose()
Returns
- Pose
GetButton(int)
Gets whether the specified button is pressed.
public override bool GetButton(int id)
Parameters
idintThe integer id of the specified button.
Returns
- bool
True if the specified button is pressed. False otherwise.
SetBlueColor(bool)
public void SetBlueColor(bool isOn)
Parameters
isOnbool
SetRedColor(bool)
public void SetRedColor(bool isOn)
Parameters
isOnbool
StartVibration(int, float)
public void StartVibration(int intensity, float duration = 0.2)
Parameters
StartVibration(VibrationIntensity, float)
public void StartVibration(VibrationIntensity intensity, float duration = 0.2)
Parameters
intensityVibrationIntensitydurationfloat