Code/SbTween/Examples/SbeTSS.cs

A small Sandbox component that starts a continuous shake-scale tween when the component starts. It calls TweenShakeScale with duration and magnitude, then sets infinite YoYo loops.

Native Interop
using Sandbox;
using SbTween;

namespace SbTween.Examples;

public sealed class SbeTSS : Component
{
	protected override void OnStart()
	{
		this.TweenShakeScale( 0.6f, 0.3f ).SetLoops( -1, LoopType.YoYo );
	}
}