rj-action-library/Runtime/Actions/TriggerActionInEditor.cs

18 lines
287 B
C#

using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class TriggerActionInEditor : Node
{
[Export]
public Action action;
[ExportToolButton( "Trigger")]
public Callable ExecuteButton => Callable.From( () => Action.Trigger( action ) );
}
}