Documentation

Unity Engine

Download Unity

Unity Engine

IsInstanceOf(nint, nint)

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