文档

Unity Engine

Unity Engine

AllocateBlock<T>(int)

Allocates a block with this allocator function.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public AllocatorManager.Block AllocateBlock<T>(int items) where T : unmanaged

Parameters

items

The number of values to allocate for.

Returns

Type

Description

BlockThe allocated block.