Table of Contents

Class ComponentCategoryAttribute

Namespace
Stride.Engine
Assembly
Stride.Engine.dll

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 string

The 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

string

Methods

GetCategory(Type)

Gets the category for the component type.

public static string GetCategory(Type type)

Parameters

type Type

The type to get the attribute from

Returns

string

The category.