Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

obj1

The first reference to compare.

obj2

The second reference to compare.

Returns

Type

Description

boolTrue if both references refer to the same Java object, or are both null. Otherwise, false.

Remarks