Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

use slider in unity

public class ButtonBehaviour : MonoBehaviour {
   int n;
   public Text myText;
   public Slider mySlider;
   void Update() {
      myText.text = "Current Volume: " + mySlider.value;
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #slider #unity
ADD COMMENT
Topic
Name
9+1 =