![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | Todd Gillissie |
![]() |
Reply From: | Zylann |
Take a look at the NinePatchRect
node: NinePatchRect — Godot Engine (3.1) documentation in English
You can also do it in a custom way using draw_texture
calls in the _draw()
function.
Thank you. That does explain how to draw them, but not how to create the sprites. I posted an answer with a link to a tool I made that helps create sprites that are optimized for NinePatch drawing.
Todd Gillissie | 2019-08-22 19:06
![]() |
Reply From: | Todd Gillissie |
If you want to export large elements that will be nine-sliced in another app such as Godot, you may find the Nine-Slicer app useful. Nine-Slicer on Steam
![]() |
Reply From: | GaidamakUA |
I’ve created a shader for that purpouse. You should try NinePatch react since it’s more performant, but for small scenes shouldn’t matter much.