文档

Unity Engine

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


fieldID


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