📜  如何统一设置滑块的最小值 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.682000             🧑  作者: Mango

代码示例1
using UnityEngine;
using System.Collections;
using UnityEngine.UI; // Required when Using UI elements.

public class Example : MonoBehaviour
{
    public Slider mainSlider;

    void Start()
    {
        // Changes the minimum value of the slider to 10;
        mainSlider.minValue = 10;
    }
}