# GetStaticStringField(nint, nint)

> Returns the value of a static field of an object.

## Definition

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

## GetStaticStringField(IntPtr, IntPtr)

```csharp
public static string GetStaticStringField(nint clazz, 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 GetStaticObjectField() with the same parameters, but creates a managed string from the result.

Additional Resources: [AndroidJNI.GetStaticObjectField](/engine/6000.7/script-reference/unityengine/androidjni/getstaticobjectfield.md), [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
