Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TryAllocate()

Attempts to allocate this block.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Method
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public int TryAllocate()

Returns

Type

Description

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