ComponentCategoryAttribute Class
Namespace: Stride.EngineAssembly: Stride.Engine.dll
Defines the category of a component type. This information is used to group component types in Game Studio.
Derived from ComponentCategoryAttribute:
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class ComponentCategoryAttribute : EntityComponentAttributeBase
Name | Description | |
---|---|---|
Constructors | ||
ComponentCategoryAttribute(String) | Initializes a new instance of the ComponentCategoryAttribute class. |
|
Properties | ||
Category | Gets the category of the associated component |
|
Methods | ||
GetCategory(Type) | Gets the category for the component type. |
Constructors
ComponentCategoryAttribute(String)
Initializes a new instance of the ComponentCategoryAttribute class.
public ComponentCategoryAttribute(string category)
Parameters
Type | Name | Description |
---|---|---|
System.String | category | The category of the associated component. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If category is null or empty. |
Properties
Category
Gets the category of the associated component
public string Category { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
GetCategory(Type)
Gets the category for the component type.
public static string GetCategory(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type to get the attribute from |
Returns
Type | Description |
---|---|
System.String | The category. |
Inherited Members
System.Attribute.Equals(System.Object)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttribute(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Boolean)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type)
System.Attribute.GetCustomAttributes(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.GetHashCode()
System.Attribute.IsDefaultAttribute()
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type)
System.Attribute.IsDefined(System.Reflection.Assembly, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.MemberInfo, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.Module, System.Type)
System.Attribute.IsDefined(System.Reflection.Module, System.Type, System.Boolean)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type)
System.Attribute.IsDefined(System.Reflection.ParameterInfo, System.Type, System.Boolean)
System.Attribute.Match(System.Object)
System.Attribute.TypeId