[학원 Unity]/[게임 UI_UX 프로그래밍]

슬라이더 만들어보기

롤링페이퍼 2024. 8. 30. 01:47

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class SliderBtn : MonoBehaviour
{
    [SerializeField] private Slider slider;

    void Start()
    {
        this.slider.onValueChanged.AddListener((value) => {
            Debug.Log(value);
        });
    }
}