docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface ITeleportationVolumeAnchorFilter

    Interface for filtering a list of anchors for a TeleportationMultiAnchorVolume to designate one as the destination anchor.

    Namespace: UnityEngine.XR.Interaction.Toolkit.Locomotion.Teleportation
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [MovedFrom("UnityEngine.XR.Interaction.Toolkit")]
    public interface ITeleportationVolumeAnchorFilter

    Methods

    GetDestinationAnchorIndex(TeleportationMultiAnchorVolume)

    Called by the teleportationVolume to designate an anchor as the teleportation destination.

    Declaration
    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 teleportationVolume's anchors list to use as the teleportation destination. If this value is outside the range of the list, the volume will not designate a destination anchor.

    See Also
    TeleportationMultiAnchorVolume

    See Also

    TeleportationMultiAnchorVolume
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)