# SetStringField(nint, nint, string)

> Sets the value of an instance field of the specified object.

## Definition

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

## SetStringField(IntPtr, IntPtr, string)

```csharp
public static void SetStringField(nint obj, nint 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 SetObjectField() with the same parameters, but performs the necessary marshalling of the string value.

Additional Resources: [AndroidJNI.SetObjectField](/engine/6000.7/script-reference/unityengine/androidjni/setobjectfield.md)
