Documentation

Unity Engine

Download Unity

Unity Engine

GetObjectField(nint, nint)

Returns the value of an instance (nonstatic) field of an object.
Read time 1 minuteLast updated a month ago

Definition

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

GetObjectField(IntPtr, IntPtr)

public static nint GetObjectField(nint obj, nint fieldID)

Parameters

The Java object that declares the field.

fieldID

The ID of the field.

Returns

Type

Description

IntPtrA local reference to the Java object stored in the field.

Remarks

The result is a reference to a \<tt\>java.lang.Object\</tt\>, or a subclass thereof.