Text updating over the previous
Hello. I have a problem with my textfield. I have 7 text field: 3 names, 3 timers and 1 timer that is summ of other timers. 6 of them updates correct, but the total textfield updates over the previous version of the text (as u can see on the screen). If I put my total timer in one of the first 6 fields or If my total textfield in the content of the scroll bar, it works, but when I put it into canvas, this problem happens.
totaltext.png
(9.1 kB)
rofl.png
(12.5 kB)
Comment
Answer by Ortaz · Jun 30, 2018 at 09:44 AM
public IEnumerator GetSec()
{
while (true)
{
yield return new WaitForSeconds(1.0f);
TS_time1 = TS_time1.Subtract(TimeSpan.FromSeconds(1));
TS_total = TS_total.Subtract(TimeSpan.FromSeconds(1));
time1.text = TS_time1 + " ";
total.text = TS_total + " ";
if (TS_time1.TotalSeconds == 0)
{
pushQueue();
yield break;
}
}
}
Your answer
