SbTween/Examples/SbecubeTS.cs

A small Sandbox component example that applies a repeating scale tween to the entity when started. OnStart creates a scale tween to Vector3(0.5,1,0.5) over 0.5s, loops forever with YoYo, uses an InBounce ease and plays it.

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