Skip to content

ActionNameAttribute

namespace Griff.Scenes;
public sealed class ActionNameAttribute : Attribute

Marks a string property as naming an action (see ActionAttribute) of the entities another of the component’s properties names, or of its own entity: the editor’s Inspector lists their actions to pick from, and flags a name none of them has.

public string? On { get; init; }

The property naming the entities whose actions it names (marked EntityNameAttribute); empty for its own entity’s.