Class ComponentCategoryAttribute
Defines the category of a component type. This information is used to group component types in Game Studio.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class ComponentCategoryAttribute : EntityComponentAttributeBase
- Inheritance
-
ComponentCategoryAttribute
- Inherited Members
Constructors
ComponentCategoryAttribute(string)
Initializes a new instance of the ComponentCategoryAttribute class.
public ComponentCategoryAttribute(string category)
Parameters
category
stringThe category of the associated component.
Exceptions
- ArgumentNullException
If category is null or empty.
Properties
Category
Gets the category of the associated component
public string Category { get; }
Property Value
Methods
GetCategory(Type)
Gets the category for the component type.
public static string GetCategory(Type type)
Parameters
type
TypeThe type to get the attribute from
Returns
- string
The category.