# GetBooleanArrayElement(nint, int)

> Returns the value of one element of a primitive array.

## Definition

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

## GetBooleanArrayElement(IntPtr, int)

```csharp
public static bool GetBooleanArrayElement(nint array, int index)
```

### Parameters

**** (\[IntPtr]\(https\://learn.microsoft.com/dotnet/api/system.intptr)): The Java array to read from.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The index of the array element.

### Returns

| Type                                                          | Description                     |
| ------------------------------------------------------------- | ------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | The value of the array element. |

### Remarks

This function is a special case of GetBooleanArrayRegion(), called with region size set to 1.

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