# SetObjectArrayElement(nint, int, nint)

> Sets an element of an \<tt\>Object\</tt\> array.

## Definition

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

## SetObjectArrayElement(IntPtr, int, IntPtr)

```csharp
public static void SetObjectArrayElement(nint array, int index, nint obj)
```

### Parameters

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

### Remarks

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