A small component example for SbTween that exposes a serialized Action property and invokes it on start and when RestartAction is called. It is intended to let designers wire callbacks from the editor and run them when the component starts or is restarted.
using System;
using Sandbox;
using SbTween;
namespace SbTween.Examples;
public sealed class SbeActionGraphTest : Component
{
[Property] public Action actionTest;
protected override void OnStart()
{
actionTest.Invoke();
}
public void RestartAction()
{
actionTest.Invoke();
}
}