Documentation

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.
Read time 1 minuteLast updated a month ago

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