文档

Unity Engine

Unity Engine

NativeParallelHashSet<T>.ParallelWriter

A parallel writer for a NativeParallelHashSet.
阅读时间1 分钟最后更新于 1 个月前

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.