Skip to content

ActionValueAttribute

namespace Griff.Scenes;
public sealed class ActionValueAttribute : FieldEditorAttribute

Marks a string property as the value an action is done with, the action named by another property (a trigger’s With, for its Do): the Inspector gives a number, a tick for true or false, or the names it takes (flags for Set Flag, scenes for Load Scene), as the action wants, and flags a value that isn’t one.

public string Action { get; }

The property of the component naming the action.

public override string Describe()
public ComponentAction? Find(Component component)

The action component’s Action names, on the first of its targets (or its own entity) that has one; null when none does yet.

public override string? Problem(Component component, object? value)