文档

Unity Engine

Download Unity

Unity Engine

NativeHashSet(int, AllocatorHandle)

Initializes and returns an instance of NativeParallelHashSet.
阅读时间1 分钟最后更新于 2 个月前

Definition

  • Type: Constructor
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public NativeHashSet(int initialCapacity, AllocatorManager.AllocatorHandle allocator)

Parameters

initialCapacity

The number of values that should fit in the initial allocation.

The allocator to use.