Version: Unity 7.0 Alpha (7000.0)
LanguageEnglish
  • C#

TypeManager.GetSystemAttributes

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static NativeList<SystemAttribute> GetSystemAttributes(SystemTypeIndex systemTypeIndex, SystemAttributeKind kind, Allocator allocator);

Parameters

Parameter Description
systemTypeIndex The SystemTypeIndex for the system.
kind The target SystemAttributeKind.
allocator Allocator used to create the returned NativeList.

Returns

NativeList<SystemAttribute> A NativeList of SystemAttributes.

Description

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


Declaration

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

Parameters

Parameter Description
systemType System type
attributeType Attribute type to return

Returns

Attribute[] Returns all attributes of type attributeType decorating systemType

Description

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