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.

    ReadOnlyHashSetExtensions

    Extension methods for ReadOnlyHashSet<T>, providing additional functionality for more restrictive constraints of type T.

    ReadOnlyHashSet<T>

    Wraps a HashSet<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.

    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.

    ReadOnlyStructSpan<T>

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

    ReadOnlyStructSpan<T>.Enumerator

    Provides an enumerator for the elements of ReadOnlyStructSpan.

    SerializableDictionary<TKey, TValue>.Item

    Class that stores the serialized items in this dictionary.

    Interfaces

    IReadOnlySet<T>

    A subset of the IReadOnlySet interface added in .NET 5. Members that depend on the IEnumerable interface are omitted because of performance implications of boxing the enumerator.

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