A small scene component example that tweens a PointLight's color. On start it animates the light color to a configured Color over 1 second, repeating indefinitely with a yo-yo loop.
using Sandbox;
namespace SbTween.Examples;
public sealed class Sbe_LightColor : Component
{
[Property] public PointLight PL;
[Property] public Color newColor;
protected override void OnStart()
{
PL.TweenLightColor( newColor, 1 ).SetLoops( -1, LoopType.YoYo ).Play();
}
}