文档

Unity Engine

Unity Engine

IsInstanceOf(nint, nint)

Tests whether an object is an instance of a class.
阅读时间1 分钟最后更新于 1 个月前

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