TextureRect should have a texture scale property #13431
Alcalientre
started this conversation in
GUI
Replies: 1 comment
-
With Godot's multiple resolutions support, you can already perform integer scaling for the entire UI. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My use case is I have a panel which contains a texturerect, and the texturerect is set to tile. I want to be able to change the ui scale and have the whole panel get bigger or smaller, with the tiled texture expanding and shrinking along with the the panel, but I don't want to just scale the entire panel because various sub elements need to scale incrementally rather than smoothly so that pixel art will appear correct.
I understand I can achieve what I want with a color rect with a shader, or by manually tiling a sprite, but it would just be much simpler if I could scale the texture being used by a texturerect which automatically fills the panel. It would also be useful regardless of my issue of wanting to change the ui scale, if you just have a tiling texture you want to use in a control node but at a larger size than you are using it somewhere else, without having to have a duplicate the asset at a larger resolution or use shaders or needlessly complex scripting.
Sorry I am not an expert, so if there is something I'm overlooking or a better solution to this, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions