docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct NativeParallelHashSet<T>.ParallelWriter

    A parallel writer for a NativeParallelHashSet.

    Namespace: Unity.Collections
    Assembly: Unity.Collections.dll
    Syntax
    [NativeContainerIsAtomicWriteOnly]
    public struct NativeParallelHashSet<T>.ParallelWriter
    Remarks

    Use AsParallelWriter() to create a parallel writer for a set.

    Properties

    Capacity

    The number of values that fit in the current allocation.

    Declaration
    public readonly int Capacity { get; }
    Property Value
    Type Description
    int

    The number of values that fit in the current allocation.

    Methods

    Add(T)

    Adds a new value (unless it is already present).

    Declaration
    public bool Add(T item)
    Parameters
    Type Name Description
    T item

    The value to add.

    Returns
    Type Description
    bool

    True if the value is not already present.

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