Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStringField(nint, nint)

Returns the value of an instance (nonstatic) field of an object.
Read time 1 minuteLast updated 4 days ago

Definition

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

GetStringField(IntPtr, IntPtr)

public static string GetStringField(nint obj, nint fieldID)

Parameters


fieldID

Returns

Type

Description

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