文档

Unity Engine

Download Unity

Unity Engine

ToReflectedField(nint, nint, bool)

Converts a field ID derived from cls to a \<tt\>java.lang.reflect.Field\</tt\> object.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

ToReflectedField(IntPtr, IntPtr, bool)

public static nint ToReflectedField(nint clazz, nint fieldID, bool isStatic)

Parameters

clazz

The Java class that declares the field.

fieldID

The ID of the field.

isStatic

Set to true for a static field. Set to false for an instance (nonstatic) field.

Returns

Type

Description

IntPtrA local reference to the corresponding java.lang.reflect.Field object.

Remarks