cirnogodot/GTweensGodot/Godot/Source/Extensions/LabelExtensions.cs
2025-02-24 11:52:50 +01:00

19 lines
No EOL
512 B
C#

using Godot;
using GTweens.Extensions;
using GTweens.Tweens;
namespace GTweensGodot.Extensions;
public static class LabelExtensions
{
public static GTween TweenDisplayedTextVisibleRatio(this Label target, float value, float duration)
{
return GTweenExtensions.Tween(
() => target.VisibleRatio,
current => target.VisibleRatio = current,
value,
duration,
GodotObjectExtensions.GetGodotObjectValidationFunction(target)
);
}
}