TextureProgress textures are not centered

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ville

The three textures of TextureProgress node (Under, Over and Progress) do not align. The sprites are not same size but they match center wise. How can you set the three textures to align using center and not (apparently) top-left corner?

TextureProgress with Fill Mode Bottom to Top

I know no way of directly doing this. You can however put a TextureRect with the “Under” Texture. Add a TextureProgress with just the progress texture as child and add a TextureRect (for over) as second child of the Under TextureRect under the TextureProgress.

wombatstampede | 2019-03-05 11:06

center align goes not guarantee all three textures combined correctly.
it depends on textures.
if it’s really needed, at least, 2 textures need offset position.

I like the way @wombatstampede said to solve this issue.

volzhs | 2019-03-05 13:34