📅  最后修改于: 2022-03-11 14:49:07.682000             🧑  作者: Mango
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;
}
}