Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsInstanceOf(nint, nint)

Tests whether an object is an instance of a class.
Read time 1 minuteLast updated 4 days 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