# SetStaticStringField(IntPtr, IntPtr, string)

> Sets the value of a static field in the specified object.

## Definition

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

```csharp
public static void SetStaticStringField(IntPtr clazz, IntPtr fieldID, string val)
```

### Parameters

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

### Remarks

This is a convenience function that calls SetStaticObjectField() with the same parameters, but performs the necessary marshalling of the string value.

Additional Resources: [AndroidJNI.SetStaticObjectField](/engine/6000.0/script-reference/unityengine/androidjni/setstaticobjectfield.md).
