Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStaticObjectField(nint, nint)

Returns the value of a static field of an object.
Read time 1 minuteLast updated 4 days ago

Definition

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

GetStaticObjectField(IntPtr, IntPtr)

public static nint GetStaticObjectField(nint clazz, nint fieldID)

Parameters

clazz

The Java class that declares the static field.

fieldID

The ID of the field.

Returns

Type

Description

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

Remarks

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