Gridwright Store

9-Slice PreviewerNine Patch Editor & 9-Slice Preview

Opening 9-Slice Previewer…

The 9-Slice Previewer is a nine patch editor online: drop a panel, a button or a whole UI sheet and set its four margins by dragging the guides, or press Find margins and it picks the smallest margins that still stretch cleanly. Then drag the panel's corner and see it at any size, the corners exactly as drawn and the edges and middle stretched, tiled or tiled to fit, the way Godot 4 draws a NinePatchRect or a StyleBoxTexture.

It shows the problems before your game does. The stretch bands turn red where the columns or rows it would stretch aren't all the same, so you see a smear coming, and a tiled middle that ends on part of a tile gets the nearest sizes that hold whole tiles. Drop a sheet with its JSON and every piece comes with its margins; the JSON of our UI packs reads straight in. Without a JSON it finds each piece on the sheet and you click the one you want. The same piece also shows as a small box, a wide bar, a tall window and a big panel side by side.

Download the piece cut from its sheet, a NinePatchRect scene and a StyleBoxTexture for Godot 4, CSS border-image classes for the web, a JSON of the margins and the panel drawn at your size, with the same margins written out for Unity, GameMaker, Phaser, Ren'Py, Defold and Unreal. Every piece of a sheet comes in one ZIP if you like. It runs on your computer and never uploads your art.

Know someone who needs this? Send it to them

A first session

  1. 1Drop a panel or a UI sheet with its JSON (or try ours, the stone sheet of Pixel UI Kit's sample).
  2. 2Pick a piece, then drag the four guides or press Find margins.
  3. 3Drag the panel's corner or the sliders, and choose Stretch, Tile or Tile Fit across and down.
  4. 4Download the piece with its Godot scene, StyleBoxTexture, CSS and JSON in one ZIP.
It exports
  • The piece as a PNG, cut from its sheet
  • Godot 4 NinePatchRect scene (.tscn) and StyleBoxTexture (.tres)
  • CSS border-image classes and a JSON of every piece's margins
  • The panel drawn at your size, as a PNG
  • Margins for Unity, GameMaker, Phaser, Ren'Py, Defold and Unreal
Try the demo, then buy it
Free to use, no account needed: open your own files and download everything you make.
Can I use what I make in a commercial game?
Yes. What you make with the tools is yours to use in your games, commercial ones too, under the Gridwright licence.

Packs that work with it

More tools

All 33 tools on one page