Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


UnsafeParallelHashSet<T>.ParallelWriter

A parallel writer for an UnsafeParallelHashSet.
Read time 1 minuteLast updated 15 days ago

Definition

public struct UnsafeParallelHashSet<T>.ParallelWriter

Remarks

Use UnsafeParallelHashSet<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.