Code/SbTween/Examples/SbecubeTS.cs

A small game component that runs on start and applies a repeating scale tween to its entity, scaling to Vector3(0.5,1,0.5) over 0.5s with infinite yo-yo loops and an InBounce easing.

Reflection
using Sandbox;
using SbTween;

namespace SbTween.Examples;

public sealed class SbecubeTS : Component
{
	protected override void OnStart()
	{
		this.TweenScale( new Vector3( 0.5f, 1f, 0.5f ),0.5f ).SetLoops(-1,LoopType.YoYo).SetEase(EaseType.InBounce).Play();
	}
}