# SetStaticObjectField(nint, nint, nint)

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

## Definition

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

## SetStaticObjectField(IntPtr, IntPtr, IntPtr)

```csharp
public static void SetStaticObjectField(nint clazz, nint fieldID, nint val)
```

### Parameters

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

### Remarks

The value to set is a reference to either a \\\<tt\\>java.lang.Object\\\</tt\\>, or a subclass thereof.

Additional Resources: [Java Native Interface Specification (Oracle)](http://download.oracle.com/javase/1.5.0/docs/guide/jni/spec/jniTOC.html)
