docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackableMARSDataCollection<T>

    Inheritance
    Object
    TrackableMARSDataCollection<T>
    Namespace: Unity.MARS.Data
    Syntax
    public class TrackableMARSDataCollection<T> : object where T : IMRTrackable
    Type Parameters
    Name Description
    T

    Properties

    collection

    Declaration
    public ReadOnlyDictionary<MarsTrackableId, KeyValuePair<int, T>> collection { get; }
    Property Value
    Type Description
    ReadOnlyDictionary<MarsTrackableId, KeyValuePair<Int32, T>>

    dictionary

    Declaration
    public Dictionary<MarsTrackableId, KeyValuePair<int, T>> dictionary { get; }
    Property Value
    Type Description
    Dictionary<MarsTrackableId, KeyValuePair<Int32, T>>

    Item[MarsTrackableId]

    Declaration
    public KeyValuePair<int, T> this[MarsTrackableId key] { get; }
    Parameters
    Type Name Description
    MarsTrackableId key
    Property Value
    Type Description
    KeyValuePair<Int32, T>

    Methods

    Add(Int32, T)

    Declaration
    public void Add(int dataId, T value)
    Parameters
    Type Name Description
    Int32 dataId
    T value

    AddOrUpdate(T)

    Declaration
    public int AddOrUpdate(T value)
    Parameters
    Type Name Description
    T value
    Returns
    Type Description
    Int32

    Clear()

    Declaration
    public void Clear()

    GetEnumerator()

    Declaration
    public Dictionary<MarsTrackableId, KeyValuePair<int, T>>.Enumerator GetEnumerator()
    Returns
    Type Description
    Dictionary.Enumerator<>

    Remove(MarsTrackableId)

    Declaration
    public void Remove(MarsTrackableId key)
    Parameters
    Type Name Description
    MarsTrackableId key

    SortAscending(Comparison<KeyValuePair<Int32, T>>, List<KeyValuePair<Int32, T>>)

    Declaration
    public void SortAscending(Comparison<KeyValuePair<int, T>> comparison, List<KeyValuePair<int, T>> sorted)
    Parameters
    Type Name Description
    Comparison<KeyValuePair<Int32, T>> comparison
    List<KeyValuePair<Int32, T>> sorted

    Operators

    Implicit(TrackableMARSDataCollection<T> to Dictionary<MarsTrackableId, KeyValuePair<Int32, T>>)

    Declaration
    public static implicit operator Dictionary<MarsTrackableId, KeyValuePair<int, T>>(TrackableMARSDataCollection<T> collection)
    Parameters
    Type Name Description
    TrackableMARSDataCollection<T> collection
    Returns
    Type Description
    Dictionary<MarsTrackableId, KeyValuePair<Int32, T>>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023