Howto: Sprite2D - Repeat Texture instead of streaching while scaling

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


i am struggeling in Godot 4.0 with this problem:

I want the Texture of a Sprite2D not to strecht while scaling. Instead, I want the texture to repeat like this:

top: how it should be, bottom: how it is

I tried the option under “Texture” for “Reapeat”, but it did nothing.

:bust_in_silhouette: Reply From: jgodfrey

On your Sprite2D node, make the following adjustments in the inspector:

  • Set Texture | Repeat to enabled
  • Set Region | Enabled to on
  • Adjust Region | Rect values as necessary to position and size the result
1 Like