Skip to content

CategoryAttribute

namespace Griff.Scenes;
public sealed class CategoryAttribute : Attribute

Where a component is listed in the editor’s component catalog, e.g. “Movement” or “Enemies”. Components without one are listed under “Scripts” (or “Other” for Griff’s own). On something the editor makes (a create command, or a module’s Griff.Editing.EntityPreset), it’s the submenu of the Entity menu and the group of the Add Entity palette it’s listed in, e.g. “Characters”, or a module’s name for its presets.

public string Name { get; }