# SetStaticBooleanField(nint, nint, bool)

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

## Definition

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

## SetStaticBooleanField(IntPtr, IntPtr, bool)

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

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java class that declares the static field.**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The ID of the field.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): The value to assign to the field.

### Remarks

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