docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Namespace Unity.XR.CoreUtils.Collections

    Classes

    HashSetList<T>

    Wrapper data structure for hashset, that leans on a list for deterministic sort order

    ReadOnlyList<T>

    Wraps a List<T> to provide a read-only view of its memory without copying any elements. It is preferable to use this collection in API designs instead of IReadOnlyCollection because GetEnumerator() returns a value-type enumerator and does not perform any heap allocations.

    SerializableDictionary<TKey, TValue>

    A dictionary class that can be serialized by Unity. Inspired by the implementation in http://answers.unity3d.com/answers/809221/view.html

    Structs

    ReadOnlyListSpan<T>

    Wraps a list or array to provide a read-only view of some or all elements. Elements are not copied, so if the underlying collection changes, the ReadOnlyListSpan will see the updated elements.

    ReadOnlyListSpan<T>.Enumerator

    Provides an enumerator for the elements of ReadOnlyListSpan.

    SerializableDictionary<TKey, TValue>.Item

    Class that stores the serialized items in this dictionary.

    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)