Code/SbTween/Examples/SBECubeTL.cs

A small Sandbox component example that tweens the owning entity's transform. On start it moves the entity by a Vector3 property over 3 seconds with linear easing and infinite yo-yo loops.

Networking
using Sandbox;
using SbTween;

namespace SbTween.Examples;

public sealed class SBECubeTL : Component
{
	[Property] public Vector3 vectorUP;

	protected override void OnStart()
	{
		this.TweenMove( vectorUP, 3 ).SetEase( EaseType.Linear ).SetLoops(-1, LoopType.YoYo ).Play();
	}
	
}