文档

Unity Engine

Unity Engine

NewLocalRef(nint)

Creates a new local reference that refers to the same object as \<tt\>obj\</tt\>.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule

NewLocalRef(IntPtr)

public static nint NewLocalRef(nint obj)

Parameters

The reference to convert.

Returns

Type

Description

IntPtrThe new reference, or null if the object referred to by the original reference has already been garbage collected.

Remarks