Class GazeTeleportationAnchorFilter
Filter for a Teleportation
Implements
Inherited Members
Namespace: UnityEngine .XR.Interaction.Toolkit.Locomotion.Teleportation
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[CreateAssetMenu(fileName = "GazeTeleportationAnchorFilter", menuName = "XR/Locomotion/Gaze Teleportation Anchor Filter")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.1/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.Teleportation.GazeTeleportationAnchorFilter.html")]
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public class GazeTeleportationAnchorFilter : ScriptableObject, ITeleportationVolumeAnchorFilter
Properties
distanceWeightCurve
The curve used to weight an anchor's score by its distance from the user. The X axis is the normalized distance, where 0 is the distance of the closest anchor and 1 is the distance of the furthest anchor. The Y axis is the weight.
Declaration
public AnimationCurve distanceWeightCurve { get; set; }
Property Value
Type | Description |
---|---|
Animation |
enableDistanceWeighting
Whether to weight an anchor's score by its distance from the user.
Declaration
public bool enableDistanceWeighting { get; set; }
Property Value
Type | Description |
---|---|
bool |
gazeAngleScoreCurve
The curve used to score an anchor by its alignment with the camera forward. The X axis is the normalized
angle between the camera forward and the anchor direction, where 0 is 0 degrees and 1 is
max
Declaration
public AnimationCurve gazeAngleScoreCurve { get; set; }
Property Value
Type | Description |
---|---|
Animation |
maxGazeAngle
The maximum angle (in degrees) between the camera forward and the direction from the camera to an anchor for the anchor to be considered a valid destination.
Declaration
public float maxGazeAngle { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
GetDestinationAnchorIndex(TeleportationMultiAnchorVolume)
Called by the teleportationVolume
to designate an anchor as the teleportation destination.
Declaration
public int GetDestinationAnchorIndex(TeleportationMultiAnchorVolume teleportationVolume)
Parameters
Type | Name | Description |
---|---|---|
Teleportation |
teleportationVolume | The volume that is designating a destination anchor. |
Returns
Type | Description |
---|---|
int | Returns the index of the transform in the |
Reset()
See Mono
Declaration
protected void Reset()