Class ScreenSpaceRayPoseDriver
Applies the pose computed from the touchscreen gestures to the Transform this component is on. Similar to a Tracked Pose Driver in purpose but uses touchscreen gesture input sources to compute the pose rather than directly using input actions.
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.AR.Inputs
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("XR/Input/Screen Space Ray Pose Driver", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.AR.Inputs.ScreenSpaceRayPoseDriver.html")]
[DefaultExecutionOrder(-31000)]
public class ScreenSpaceRayPoseDriver : MonoBehaviour
Properties
controllerCamera
The camera associated with the screen, and through which screen presses/touches will be interpreted.
Declaration
public Camera controllerCamera { get; set; }
Property Value
Type | Description |
---|---|
Camera |
dragCurrentPositionInput
Input to use for the screen drag current position.
Declaration
public XRInputValueReader<Vector2> dragCurrentPositionInput { get; set; }
Property Value
Type | Description |
---|---|
XRInputValueReader<Vector2> |
See Also
screenTouchCountInput
The input used to read the screen touch count value.
Declaration
public XRInputValueReader<int> screenTouchCountInput { get; set; }
Property Value
Type | Description |
---|---|
XRInputValueReader<int> |
See Also
tapStartPositionInput
Input to use for the screen tap start position.
Declaration
public XRInputValueReader<Vector2> tapStartPositionInput { get; set; }
Property Value
Type | Description |
---|---|
XRInputValueReader<Vector2> |
See Also
Methods
OnDisable()
See MonoBehaviour.
Declaration
protected void OnDisable()
OnEnable()
See MonoBehaviour.
Declaration
protected void OnEnable()
Update()
See MonoBehaviour.
Declaration
protected void Update()