GetSystemAttributes
Obtains a list containing the SystemAttributes for a system. This allows for access to the attributes which were put on the system.
阅读时间1 分钟最后更新于 19 天前
Definition
- Type: Method
- Namespace: Unity.Entities
- 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.
public static NativeList<TypeManager.SystemAttribute> GetSystemAttributes(SystemTypeIndex systemTypeIndex, TypeManager.SystemAttributeKind kind, Allocator allocator = Allocator.Temp)
Parameters
The SystemTypeIndex for the system.
The target SystemAttributeKind.
Allocator used to create the returned NativeList.
Returns
Type | Description |
|---|---|
| NativeList<SystemAttribute> | A NativeList of SystemAttributes. |
GetSystemAttributes(Type, Type)
Get all the attribute objects of Type attributeType for a System.
public static Attribute[] GetSystemAttributes(Type systemType, Type attributeType)
Parameters
Returns
Type | Description |
|---|---|
| Attribute[] | Returns all attributes of type attributeType decorating systemType |