# GetSystemAttributes

> Obtains a list containing the SystemAttributes for a system. This allows for access to the attributes which were put on the system.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Entities](/engine/7000.0/script-reference/unity/entities.md)
* **Assembly:** UnityEngine.EntitiesModule

## GetSystemAttributes(SystemTypeIndex, SystemAttributeKind, Allocator)

Obtains a list containing the SystemAttributes for a system. This allows for access to the attributes which were put on the system.

```csharp
public static NativeList<TypeManager.SystemAttribute> GetSystemAttributes(SystemTypeIndex systemTypeIndex, TypeManager.SystemAttributeKind kind, Allocator allocator = Allocator.Temp)
```

### Parameters

**** (\[SystemTypeIndex]\(/engine/7000.0/script-reference/unity/entities/systemtypeindex)): The SystemTypeIndex for the system.**** (\[SystemAttributeKind]\(/engine/7000.0/script-reference/unity/entities/typemanager/systemattributekind)): The target SystemAttributeKind.**** (\[Allocator]\(/engine/7000.0/script-reference/unity/collections/allocator)): Allocator used to create the returned NativeList.

### Returns

| Type                                                                                             | Description                       |
| ------------------------------------------------------------------------------------------------ | --------------------------------- |
| [NativeList\<SystemAttribute>](/engine/7000.0/script-reference/unity/collections/nativelist1.md) | A NativeList of SystemAttributes. |

## GetSystemAttributes(Type, Type)

Get all the attribute objects of Type attributeType for a System.

```csharp
public static Attribute[] GetSystemAttributes(Type systemType, Type attributeType)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): System type**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Attribute type to return

### Returns

| Type                                                                     | Description                                                        |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [Attribute\[\]](https://learn.microsoft.com/dotnet/api/system.attribute) | Returns all attributes of type attributeType decorating systemType |
