Documentation

Unity Engine

Unity Engine

IsAssignableFrom(nint, nint)

Determines whether an object of \<tt\>clazz1\</tt\> can be safely cast to \<tt\>clazz2\</tt\>.
Read time 1 minuteLast updated a month ago

Definition

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

IsAssignableFrom(IntPtr, IntPtr)

public static bool IsAssignableFrom(nint clazz1, nint clazz2)

Parameters

clazz1

The class to test for assignability.

clazz2

The class to test against.

Returns

Type

Description

boolTrue if an object of the first class can be safely cast to the second. Otherwise, false.

Remarks