文档

Unity Engine

Unity Engine

IsAssignableFrom(nint, nint)

Determines whether an object of \<tt\>clazz1\</tt\> can be safely cast to \<tt\>clazz2\</tt\>.
阅读时间1 分钟最后更新于 1 个月前

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