文档

Unity Engine

Unity Engine

Try(ref Block)

Invoke the allocator function.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule

Try(Block)

int Try(ref AllocatorManager.Block block)

Parameters

block

The block to allocate, deallocate, or reallocate. See AllocatorManager.Try

Returns

Type

Description

int0 if successful. Otherwise, returns the error code from the allocator function.