Problem with unity Ui Text and how to change it
i am trying to create a Button that when pressed makes a number (displayed in text format) increas. this is my script but i cant get it to work
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class TextChanger : MonoBehaviour { private int value; private string numbertext; public Text number_text; // Use this for initialization void Start() { } // Update is called once per frame void Update() { OnClickChangeValue on = new OnClickChangeValue(); value = on.number; number_text.text = "text";
Your answer
Follow this Question
Related Questions
[SOLVED]My UI text don't update from script 3 Answers
Visible popup damage notifier 0 Answers
How to resize image to what's inside? 0 Answers
Need alternative for onEndEdit on InputField 2 Answers
Stop previous coroutine and start new one from beginning 1 Answer