ドキュメント

Unity Engine

Download Unity

Unity Engine

IsSameObject(nint, nint)

Tests whether two references refer to the same Java object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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