Draw.Texture: Fill mode "Repeat To Fill"

Avatar
  • updated
  • Currently out of scope

Just to jump on the new Draw.Texture mode (thank you!), would it be possible to have a Fill mode that repeats the texture on X/Y axes?

Position could offset the texture's anchor point in relation to the shape (or in screen-space?), while Size/SizeMode could determine how large the texture renders before it tiles.

Reporting a bug? please specify Unity version:
Reporting a bug? please specify Shapes version:
Reporting a bug? please specify Render Pipeline:
Built-in render pipeline
Avatar
Freya Holmér creator
  • Currently out of scope

I think this is a little out of scope currently (which is why I didn't add it when making it), but you can already do this with the Rect/Rect overload where you specify UVs directly! If you make the UV rect extend beyond 1 in width and height, the texture will repeat (assuming the texture is set to wrap and not clamp)

Avatar
Lollie
That should be a decent workaround for now, thank you!