NewLocalRef(nint)
Creates a new local reference that refers to the same object as \<tt\>obj\</tt\>.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
NewLocalRef(IntPtr)
public static nint NewLocalRef(nint obj)
Parameters
The reference to convert.
Returns
Type | Description |
|---|---|
| IntPtr | The new reference, or null if the object referred to by the original reference has already been garbage collected. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)