# WriteArrayElement<T>(void*, int, T)

> Write array element.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Collections.LowLevel.Unsafe](/engine/6000.3/script-reference/unity/collections/lowlevel/unsafe.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void WriteArrayElement<T>(void* destination, int index, T value)
```

### Parameters

**** (\[void\*]\(https\://learn.microsoft.com/dotnet/api/system.void)): Memory pointer.**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Array index.**** (T): Value to write.
