# GetStringField(nint, nint)

> Returns the value of an instance (nonstatic) field of an object.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AndroidJNIModule

## GetStringField(IntPtr, IntPtr)

```csharp
public static string GetStringField(nint obj, nint fieldID)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): **** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)):&#x20;

### Returns

| Type                                                           | Description |
| -------------------------------------------------------------- | ----------- |
| [string](https://learn.microsoft.com/dotnet/api/system.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](/engine/6000.7/script-reference/unityengine/androidjni/getobjectfield.md)
