{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method GetUniqueKeyArray | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetUniqueKeyArray

    GetUniqueKeyArray<TKey, TValue>(UnsafeParallelMultiHashMap<TKey, TValue>, AllocatorHandle)

    Returns an array populated with the unique keys from this multi hash map.

    Declaration
    public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this UnsafeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged
    Parameters
    Type Name Description
    UnsafeParallelMultiHashMap<TKey, TValue> container

    The multi hash map.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    Returns
    Type Description
    (NativeArray<TKey>, int)

    An array populated with the unique keys from this multi hash map.

    Type Parameters
    Name Description
    TKey

    The type of the keys.

    TValue

    The type of the values.

    GetUniqueKeyArray<TKey, TValue>(NativeParallelMultiHashMap<TKey, TValue>, AllocatorHandle)

    Returns an array populated with the unique keys from this multi hash map.

    Declaration
    public static (NativeArray<TKey>, int) GetUniqueKeyArray<TKey, TValue>(this NativeParallelMultiHashMap<TKey, TValue> container, AllocatorManager.AllocatorHandle allocator) where TKey : unmanaged, IEquatable<TKey>, IComparable<TKey> where TValue : unmanaged
    Parameters
    Type Name Description
    NativeParallelMultiHashMap<TKey, TValue> container

    The multi hash map.

    AllocatorManager.AllocatorHandle allocator

    The allocator to use.

    Returns
    Type Description
    (NativeArray<TKey>, int)

    An array populated with the unique keys from this multi hash map.

    Type Parameters
    Name Description
    TKey

    The type of the keys.

    TValue

    The type of the values.

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