نمایش مقدار اسلایدر بر روی کادر متن در یونیتی_slider value to text box
سه شنبه, ۵ دی ۱۳۹۶، ۰۱:۳۶ ب.ظ
gameover.blog.ir
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class sliderColor : MonoBehaviour {
public Slider slider;
public Text txt1;
void Update () {
txt1.text = (slider.value*10).ToString() ;
}
}
۹۶/۱۰/۰۵