IsSameObject(nint, nint)
Tests whether two references refer to the same Java object.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AndroidJNIModule
IsSameObject(IntPtr, IntPtr)
public static bool IsSameObject(nint obj1, nint obj2)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if both references refer to the same Java object, or are both null. Otherwise, false. |
Remarks
Additional Resources: Java Native Interface Specification (Oracle)