SbTween/Examples/Light/Sbe_LightColor.cs

A small example component that tweens a PointLight's color. On start it calls TweenLightColor on the assigned PointLight to transition to newColor over 1 second, looping forever with a yo-yo loop.

Networking
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();
	}

}