docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct TrackableCollection<TTrackable>.Enumerator

    An Enumerator for TTrackables.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.XR.ARFoundation
    Assembly: Unity.XR.ARFoundation.dll
    Syntax
    public struct TrackableCollection<TTrackable>.Enumerator

    Constructors

    Enumerator(Dictionary<TrackableId, TTrackable>)

    Constructs an Enumerator for use with TTrackables.

    Declaration
    public Enumerator(Dictionary<TrackableId, TTrackable> trackables)
    Parameters
    Type Name Description
    Dictionary<TrackableId, TTrackable> trackables

    A Dictionary of TTrackables.

    Properties

    Current

    The current value in the collection.

    Declaration
    public TTrackable Current { get; }
    Property Value
    Type Description
    TTrackable

    Methods

    Dispose()

    Releases all resources used by this Enumerator.

    Declaration
    public void Dispose()

    MoveNext()

    Moves to the next trackable in the collection.

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    bool

    true if the next trackable is valid, or false if it is the end of the collection.

    In This Article
    Back to top
    Copyright © 2024 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)