# MemsetNativeArray<T>

> Assign Value to each element of NativeArray

## Definition

* **Type:** Struct
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule
* **Implements:** [IJobParallelFor](/engine/7000.0/script-reference/unity/jobs/ijobparallelfor.md)

```csharp
[BurstCompile]
public struct MemsetNativeArray<T> : IJobParallelFor where T : struct
```

## Fields

| Value                                                                                 | Description                                                     |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------- |
| [Source](/engine/7000.0/script-reference/unity/entities/memsetnativearray1/source.md) | The destination array, to which the value is copied repeatedly. |
| [Value](/engine/7000.0/script-reference/unity/entities/memsetnativearray1/value.md)   | The value to copy repeatedly to the destination array.          |

## Methods

| Method                                                                                  | Description                                                                                                                                         |
| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Execute](/engine/7000.0/script-reference/unity/entities/memsetnativearray1/execute.md) | This function is executed once for each work unit of the job, potentially concurrently. Each work unit copies one value into the destination array. |
