Documentation

Unity Engine

Unity Engine

IsInstanceOf(nint, nint)

Tests whether an object is an instance of a class.
Read time 1 minuteLast updated a month ago

Definition

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

IsInstanceOf(IntPtr, IntPtr)

public static bool IsInstanceOf(nint obj, nint clazz)

Parameters

The object to test.

clazz

The class to test against.

Returns

Type

Description

boolTrue if the object is an instance of the class. Otherwise, false.

Remarks