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
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.1/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 |
---|---|
XRInput |
See Also
dragStartPositionInput
Input to use for the screen drag start position.
Declaration
public XRInputValueReader<Vector2> dragStartPositionInput { get; set; }
Property Value
Type | Description |
---|---|
XRInput |
See Also
screenTouchCountInput
The input used to read the screen touch count value.
Declaration
public XRInputValueReader<int> screenTouchCountInput { get; set; }
Property Value
Type | Description |
---|---|
XRInput |
See Also
tapStartPositionInput
Input to use for the screen tap start position.
Declaration
public XRInputValueReader<Vector2> tapStartPositionInput { get; set; }
Property Value
Type | Description |
---|---|
XRInput |
See Also
Methods
OnDisable()
See Mono
Declaration
protected void OnDisable()
OnEnable()
See Mono
Declaration
protected void OnEnable()
Update()
See Mono
Declaration
protected void Update()