Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

AndroidJNI.SetObjectField

Declaration

public static void SetObjectField(IntPtr obj, IntPtr fieldID, IntPtr val);

Description

Sets the value of an instance field of the specified object.

The value to set is a reference to either a java.lang.Object, or a subclass thereof.

Additional resources: Java Native Interface Specification (Oracle)