Class XRTransformStabilizer
Provides low-latency stabilization for XR pose inputs, especially useful on rays.
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.Inputs
Syntax
[AddComponentMenu("XR/XR Transform Stabilizer", 11)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.4/api/UnityEngine.XR.Interaction.Toolkit.Inputs.XRTransformStabilizer.html")]
[DefaultExecutionOrder(-29985)]
public class XRTransformStabilizer : MonoBehaviour
Properties
angleStabilization
Maximum distance (in degrees) that stabilization will be applied.
Declaration
public float angleStabilization { get; set; }
Property Value
Type | Description |
---|---|
Single |
positionStabilization
Maximum distance (in meters) that stabilization will be applied.
Declaration
public float positionStabilization { get; set; }
Property Value
Type | Description |
---|---|
Single |
targetTransform
The Transform component whose position and rotation will be matched and stabilized.
Declaration
public Transform targetTransform { get; set; }
Property Value
Type | Description |
---|---|
Transform |
useLocalSpace
If enabled, will read the target and apply stabilization in local space. Otherwise, in world space.
Declaration
public bool useLocalSpace { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
Awake()
See MonoBehaviour.
Declaration
protected void Awake()
OnEnable()
See MonoBehaviour.
Declaration
protected void OnEnable()
Update()
See MonoBehaviour.
Declaration
protected void Update()