# NativeFixedLengthAttribute(int)

> Initializes and returns an instance of NativeFixedLengthAttribute.

## Definition

* **Type:** Constructor
* **Namespace:** [Unity.Collections](/engine/6000.6/script-reference/unity/collections.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public NativeFixedLengthAttribute(int fixedLength)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The fixed number of elements in the native container.
