Code/SbTween/Examples/Light/Sbe_FlickerTest.cs

A small example component that starts a flickering point light tween when the component starts. It holds PointLight and brightness range properties, then calls TweenFlickerLight with looped playback.

Native Interop
using Sandbox;

namespace SbTween.Examples;

public sealed class Sbe_FlickerTest : Component
{

	[Property] public PointLight PL;
	[Property] public float MinBrightness;
	[Property] public float MaxBrightness;



	protected override void OnStart()
	{
		PL.TweenFlickerLight( MinBrightness, MaxBrightness, 1, 10 ).SetLoops(-1).Play();
	}

}