Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


EnsureLocalCapacity(int)

Ensures that at least a given number of local references can be created in the current thread.
Read time 1 minuteLast updated 7 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule
public static int EnsureLocalCapacity(int capacity)

Parameters

capacity

The minimum number of local references the current thread can hold.

Returns

Type

Description

intZero on success. A negative value on failure.

Remarks