Method GetSystemAttributes
GetSystemAttributes(SystemTypeIndex, SystemAttributeKind, Allocator)
Obtains a list containing the SystemAttributes of a specific kind for a system. This allows for burstable access to the attributes which were put on the system.
Declaration
public static NativeList<TypeManager.SystemAttribute> GetSystemAttributes(SystemTypeIndex systemTypeIndex, TypeManager.SystemAttributeKind kind, Allocator allocator = Allocator.Temp)Parameters
| Type | Name | Description | 
|---|---|---|
| SystemTypeIndex | systemTypeIndex | The SystemTypeIndex for the system. | 
| TypeManager.SystemAttributeKind | kind | The SystemAttributeKind of attributes to gather. | 
| Allocator | allocator | Allocator used to create the returned NativeList. | 
Returns
| Type | Description | 
|---|---|
| NativeList<TypeManager.SystemAttribute> | A NativeList of SystemAttributes. | 
Remarks
This gets the same information as reflecting to get the attributes on the system and filtering for a specific kind, except that it uses pre-generated information and is burstable.
GetSystemAttributes(Type, Type)
Get all the attribute objects of Type attributeType for a System.
Declaration
public static Attribute[] GetSystemAttributes(Type systemType, Type attributeType)Parameters
| Type | Name | Description | 
|---|---|---|
| Type | systemType | System type | 
| Type | attributeType | Attribute type to return | 
Returns
| Type | Description | 
|---|---|
| Attribute[] | Returns all attributes of type attributeType decorating systemType |