Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITextInstance somehow getting background color from other objects #128

Open
tayl0r opened this issue Oct 4, 2012 · 0 comments
Open

UITextInstance somehow getting background color from other objects #128

tayl0r opened this issue Oct 4, 2012 · 0 comments

Comments

@tayl0r
Copy link
Contributor

tayl0r commented Oct 4, 2012

I am seeing some weirdness with UITextInstance picking up colors from the previous background. Like, I make a UITextInstance, put it in my scene, and the background of the UITextInstance is the camera background color. Then, I create a UISprite and put it under the UITextInstance and for some reason the original background color is still visible on the edges of the UITextInstance. Here is a screenshot:

When the UITextInstance text changes, new text sprites will not have the background color. So, if your original string was 2 characters, and you change it to a totally different string of 3 characters, the first 2 characters will still have the funky background color but the new 3rd character will not.

Any ideas?

There is a workaround, if you initially set the text as blank, then yield until WaitForEndOfFrame() and set the text there, it seems to work like you would expect (no background color leakage).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant