Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: TokyoDan on August 05, 2013, 10:14:39 PM

Title: Can't use UILabel for status messages
Post by: TokyoDan on August 05, 2013, 10:14:39 PM
I'm trying to use a UILabel to display status messages. 

    public UILabel messageLabel;
    messageLabel.text = "This is a status message";

But the second time I try to set the .text field it just superimposes the 2nd message over the previous message without clearing out the text that was there before. Even trying to null the .text field or using an empty string before trying to change the .text field doesn't work.

    messageLabel.text = null // or "";
    messageLabel.text = "This is the 2nd status message";

How do I clear out the previous text so I can cleanly display new text?
Title: Re: Can't use UILabel for status messages
Post by: ArenMook on August 05, 2013, 10:52:23 PM
Check your camera clear flags. You likely don't have any cameras clearing color.
Title: Re: Can't use UILabel for status messages
Post by: TokyoDan on September 19, 2013, 11:18:12 PM
Thanks.