Class FurthestTeleportationAnchorFilter
Filter for a TeleportationMultiAnchorVolume that designates the anchor furthest from the user as the teleportation destination. Distance calculation uses the camera position projected onto the XZ plane of the XR Origin.
Implements
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.Locomotion.Teleportation
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[CreateAssetMenu(fileName = "FurthestTeleportationAnchorFilter", menuName = "XR/Locomotion/Furthest Teleportation Anchor Filter")]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.0/api/UnityEngine.XR.Interaction.Toolkit.Locomotion.Teleportation.FurthestTeleportationAnchorFilter.html")]
[MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
public class FurthestTeleportationAnchorFilter : ScriptableObject, ITeleportationVolumeAnchorFilter
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 |
---|---|---|
TeleportationMultiAnchorVolume | teleportationVolume | The volume that is designating a destination anchor. |
Returns
Type | Description |
---|---|
int | Returns the index of the transform in the |