Skip to content

OutputNameAttribute

namespace Griff.Scenes;
public sealed class OutputNameAttribute : Attribute

Marks a string property as naming an output (see OutputAttribute) of the entity another of the component’s properties names, or of its own entity (or what it’s inside) without one: the editor’s Inspector lists their outputs to pick from, and flags a name none of them has.

public string? On { get; init; }

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

public bool TakesNames { get; init; }

It shows outputs that give a name too (a text), not just numbers and true or false (a counter, bar or wire).