Ivanna Posted January 12, 2016 Share Posted January 12, 2016 I have text in my game that I would like to hide at certain points and show at others. I'm doing this by setting text.renderable to false. This is somehow being set to true after I set it to false and I have no idea how. It's definitely not being set to true by me, it must be a secondary effect of something else going on. Is this not the correct way to show/hide text? Thanks. Link to comment Share on other sites More sharing options...
rich Posted January 12, 2016 Share Posted January 12, 2016 Are you modifying the text while it's hidden? I wonder if that may cause it (off the top of my head). Using `renderable` is fine, but `visible` should work too. Link to comment Share on other sites More sharing options...
Ivanna Posted January 12, 2016 Author Share Posted January 12, 2016 I was only changing `renderable` and not touching `visible` at all. Switching from `renderable` to `visible` in all cases made things work as I want, so thanks! I'm still a little confused about what was changing the property but I'm happy that I have it working now. Link to comment Share on other sites More sharing options...
rich Posted January 13, 2016 Share Posted January 13, 2016 Yeah like I said I wonder if changing the text (while renderable = false) resets it, i.e. changing the Text.text value. Link to comment Share on other sites More sharing options...
Recommended Posts