3 posts • Page 1 of 1
Currently, you can set a sprite to a supported GUI element anytime you like, you don't have to set it when creating the element. You can't however unset it after it's been set. Setting it to nil gives an error and setting it to an empty string doesn't do anything. I'd like to be able to unset the sprite without recreating the whole element, preferably by setting it to nil, but whatever works.
As a note, writing nil to a sprite or sprite-button gives an error. Writing empty string to a sprite clears the element, but writing empty string to a sprite-button does nothing.
Yes exactly. What's even worse is that when you set it to an empty string, the sprite will still be shown visually, but reading .sprite will return the empty string, which is obviously not the sprite that's displayed.
Users browsing this forum: No registered users