文档

Unity Engine

Unity Engine

EnsureLocalCapacity(int)

Ensures that at least a given number of local references can be created in the current thread.
阅读时间1 分钟最后更新于 1 个月前

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