---
title: NativeFixedLengthAttribute(int)
product: Unity Editor
version: '6000.7'
latest_version: '7000.0'
status: This page documents version 6000.7. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.7/script-reference/unity/collections/nativefixedlengthattribute/ctor
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/collections/nativefixedlengthattribute/ctor.md
last_updated: 2026-11-21
generated_at: 2026-11-25T10:57:52.420Z
locale: en-us
---

# NativeFixedLengthAttribute(int)

> Initializes and returns an instance of NativeFixedLengthAttribute.

## Definition

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

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

### Parameters

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