{!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 UnionWith | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UnionWith

    UnionWith<T>(ref NativeHashSet<T>, FixedList128Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    FixedList128Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList32Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    FixedList32Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList4096Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    FixedList4096Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList512Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    FixedList512Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, FixedList64Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    FixedList64Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeArray<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeArray<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeHashSet<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, ReadOnly)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeParallelHashSet<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeParallelHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, ReadOnly)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeHashSet<T>, NativeList<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeHashSet<T> container

    The set to add values to.

    NativeList<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList128Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList128Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    FixedList128Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList32Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList32Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    FixedList32Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList4096Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList4096Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    FixedList4096Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList512Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList512Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    FixedList512Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, FixedList64Bytes<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, FixedList64Bytes<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    FixedList64Bytes<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeArray<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeArray<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeArray<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeHashSet<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, ReadOnly)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeParallelHashSet<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeParallelHashSet<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, ReadOnly)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeParallelHashSet<T>.ReadOnly other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeParallelHashSet<T>.ReadOnly other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of values.

    UnionWith<T>(ref NativeParallelHashSet<T>, NativeList<T>)

    Adds all values from a collection to this set.

    Declaration
    public static void UnionWith<T>(this ref NativeParallelHashSet<T> container, NativeList<T> other) where T : unmanaged, IEquatable<T>
    Parameters
    Type Name Description
    NativeParallelHashSet<T> container

    The set to add values to.

    NativeList<T> other

    The collection to copy values from.

    Type Parameters
    Name Description
    T

    The type of 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)