# AttachmentIndexArray

> Create and initialize a new AttachmentIndexArray.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEngine.Rendering](/engine/6000.6/script-reference/unityengine/rendering.md)
* **Assembly:** UnityEngine.CoreModule

## AttachmentIndexArray(int)

Create and initialize a new AttachmentIndexArray.

```csharp
public AttachmentIndexArray(int numAttachments)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Number of indices to allocate.

### Remarks

Individual items can be read/writen using the indexer operator.

## AttachmentIndexArray(int\[])

Create and initialize a new AttachmentIndexArray.

```csharp
public AttachmentIndexArray(int[] attachments)
```

### Parameters

**** (\[int\[]]\(https\://learn.microsoft.com/dotnet/api/system.int32)): Allocate and copy the passed-in list of indices.

### Remarks

Individual items can be read/writen using the indexer operator.

## AttachmentIndexArray(NativeArray\<int>)

Create and initialize a new AttachmentIndexArray.

```csharp
public AttachmentIndexArray(NativeArray<int> attachments)
```

### Parameters

**** (\[NativeArray\<int>]\(/engine/6000.6/script-reference/unity/collections/nativearray1)): Allocate and copy the passed-in list of indices.

### Remarks

Individual items can be read/writen using the indexer operator.
