Files
Project-M/Packages/com.rukhanka.animation/Samples~/Samples/Scripts/UI/UILabelSetter_AnimatorParameters.cs
T
2026-05-31 14:27:52 -07:00

24 lines
656 B
C#

using TMPro;
using UnityEngine;
using UnityEngine.UI;
/////////////////////////////////////////////////////////////////////////////////
namespace Rukhanka.Samples
{
class UILabelSetter_AnimatorParameters: MonoBehaviour
{
public TextMeshProUGUI moveSpeedLabel;
public TextMeshProUGUI selectAnimationLabel;
public Slider moveSpeedSlider;
public Slider selectAnimationSlider;
/////////////////////////////////////////////////////////////////////////////////
void Update()
{
moveSpeedLabel.text = $"Animation Speed (float): {moveSpeedSlider.value:F2}f";
selectAnimationLabel.text = $"Select Animation (int): {selectAnimationSlider.value}";
}
}
}