Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


NativeParallelHashSet<T>.ParallelWriter

A parallel writer for a NativeParallelHashSet.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public struct NativeParallelHashSet<T>.ParallelWriter

Remarks

Use NativeParallelHashSet<T>.AsParallelWriter to create a parallel writer for a set.

Properties

Property

Description

CapacityThe number of values that fit in the current allocation.

Methods

Method

Description

AddAdds a new item. If the item is already present in the collection, this method should throw, but currently does not! Instead, it returns false without replacing said item.
TryAddAdds a new value. If the item is already present, this method returns false without replacing said item.