Label not updating
Hi,
A couple of labels for score counters aren't updating at random times.
currentScore++
print('new score: '+currentScore.toString())
// prints out the new score
script.scoreDisplay.text = currentScore.toString()
// should update the label but doesn't always
print('the text is: '+script.scoreDisplay.text)
// this is always the right text, even when it doesn't update on the actual label
Any thoughts?
Thanks
Hey Ashley,
I'm having trouble reproducing this. Can you give some details on when that code is run, and if anything else is interacting with the label?
Thanks,
Jacob
It's in it's own function and nothing else interacts with the label. The function only gets called once per time someone scores.
It's just weird that the instance in code has the correct text but the rendering of it doesn't
That definitely sounds like it's not working correctly and could be a bug. Can you post a stripped down version of your project so I can take a look? Or let's follow up offline if you're not comfortable sharing it publicly.
Thanks!