Documentation

Unity Engine


Unity Engine


SetObjectField(nint, nint, nint)

Sets the value of an instance field of the specified object.
Read time 1 minuteLast updated 8 days ago

Definition

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

SetObjectField(IntPtr, IntPtr, IntPtr)

public static void SetObjectField(nint obj, nint fieldID, nint val)

Parameters

The Java object that declares the field.

fieldID

The ID of the field.

The value to assign to the field.

Remarks

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