ドキュメント

Unity Engine

Download Unity

Unity Engine

SetStringField(nint, nint, string)

Sets the value of an instance field of the specified object.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

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

SetStringField(IntPtr, IntPtr, string)

public static void SetStringField(nint obj, nint fieldID, string val)

Parameters

The Java object that declares the field.

fieldID

The ID of the field.

The value to assign to the field.

Remarks

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