Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetStaticStringField(nint, nint, string)

Sets the value of a static field in the specified object.
Read time 1 minuteLast updated 5 days ago

Definition

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

SetStaticStringField(IntPtr, IntPtr, string)

public static void SetStaticStringField(nint clazz, nint fieldID, string val)

Parameters

clazz

The Java class that declares the static field.

fieldID

The ID of the field.

The value to assign to the field.

Remarks

This is a convenience function that calls SetStaticObjectField() with the same parameters, but performs the necessary marshalling of the string value.
Additional Resources: AndroidJNI.SetStaticObjectField