A small component example that applies a continuous rotating tween to its entity. On start it tweens the entity's rotation to 0,180,0 over 1 second, uses a configurable easing type, loops indefinitely, and starts playing.
using Sandbox;
using SbTween;
namespace SbTween.Examples;
public sealed class SbecubeTR : Component
{
[Property] public EaseType easingType;
protected override void OnStart()
{
this.TweenRotate(Rotation.From(0,180,0), 1).SetEase( easingType ).SetLoops(-1).Play();
}
}