Documentation

Unity Engine


Unity Engine


GetSystemAttributes

Obtains a list containing the SystemAttributes for a system. This allows for access to the attributes which were put on the system.
Read time 1 minuteLast updated 3 days ago

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

systemTypeIndex

The SystemTypeIndex for the system.

The target SystemAttributeKind.

allocator

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

systemType

System type

attributeType

Attribute type to return

Returns

Type

Description

Attribute[]Returns all attributes of type attributeType decorating systemType