Is there a way to repeat a texture in a texture progress bar node?

Godot Version

4.5 dev 2

Question

I have a texture of star for the score of the player, but is a single texture and i want the texture progress bar to be 3 stars in total, Is there a way to repeat this same texture within Godot so that the progress bar fills three stars in total?

Or would I have to exit Godot and paste this same texture two more times to be able to use it as I need?

You can use an AltasTexture as your TextureProgressBar.texture_progress with the AtlasTexture.region width being a multiple of the texture width (if the texture width is 100 and you want 3 then it would be 300) and the CanvasItem.texture_repeat of the TextureProgressBar set to Enabled

Example:

1 Like

Thanks, this is what I was looking for.