Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetStringField(IntPtr, IntPtr)

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

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AndroidJNIModule
public static string GetStringField(IntPtr obj, IntPtr 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.