docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ReadOnlyHashSetExtensions

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

    Inheritance
    object
    ReadOnlyHashSetExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.XR.CoreUtils.Collections
    Assembly: Unity.XR.CoreUtils.dll
    Syntax
    public static class ReadOnlyHashSetExtensions

    Methods

    CopyTo<T>(ReadOnlyHashSet<T>, NativeArray<T>)

    Copies the elements of the set to a native array.

    Declaration
    public static void CopyTo<T>(this ReadOnlyHashSet<T> set, NativeArray<T> array) where T : struct
    Parameters
    Type Name Description
    ReadOnlyHashSet<T> set

    This instance.

    NativeArray<T> array

    The array.

    Type Parameters
    Name Description
    T

    The element type.

    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)