-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Description
What problem does this solve or what need does it fill?
General UI functionality. In my case, some of the textures that appear in the world also need to be shown into the UI (in a Minecraft-esque tile picker that includes flipped tiles), using ImageBundle. I imagine others may run into similar issues.
What solution would you like?
Allow Sprite components (which include flip_x and flip_y fields) to affect UI images created from ImageBundle. The resize_mode field will perhaps also be useful, if that functionality is not already covered for UI. I don't imagine the size field will be as relevant in UI though, but I may be wrong.
What alternative(s) have you considered?
Allow sprites to be flipped with negative Transform scale values. Currently, they scale properly for positive values, but disappear for negative values. This is less intuitive for developers newer to gamedev, but will make particular scenarios easier to code, such as lerping to a flipped state from an un-flipped one through scaling. I don't think it should be the blessed way, though, unless they specifically need scaling and flipping to be closely related.
Thank you!