ドキュメント

Unity Engine

Download Unity

Unity Engine

GetStringField(nint, nint)

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

Definition

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

GetStringField(IntPtr, IntPtr)

public static string GetStringField(nint obj, nint fieldID)

Parameters

The Java object that declares the field.

fieldID

The ID of the field.

Returns

Type

Description

stringThe value of the field, as a managed string.

Remarks

This is a convenience function that calls GetObjectField() with the same parameters, but creates a managed string from the result.
Additional Resources: AndroidJNI.GetObjectField