[Feature Request] Shortcut keys and other tools for working with tilemap

Needs shortcut keys to quickly work with tilemap painting…

Maybe something like commonly in pixel art editors,
and if they are conflicting with main unity keys, [×] override keys in tilemap mode as an option?

  • Right click to erase (or pipette, can pick tile from scene window tilemap layer) *since right click and middle mouse button both are panning now
  • (E)rase, (B)rush, (F)ill, (I)Pipette/eye dropper
  • Shortcut keys for selecting next-prev tile in tilemap palette (without going there with mouse)
  • Maybe even quick select slot assign (ctrl+1 = assign this tile into key #1), so can quickly swap between most common tiles
  • Selection box (so that can copy & paste selection from tilemap, for example parts of the level can be then re-used easily)

*probably some of those could be done with editor scripts…but still.

Right now the hotkeys for painting are SHIFT for erase and CTRL for picking.

“Shortcut keys for selecting next-prev tile in tilemap palette”
This is very important for me too

Ok that works, still missing cursor change though (to show which tool is activated when pressing shift or ctrl)

Just founded the X, Y, comma, period for flip/rotate…those are useful,
and selection box seems to be already there (hold down ctrl and drag select area)

Apologies for forgetting to add the shortcut keys in the reference guide. Happens in a rush :wink:
Just added them but for anyone who hasn’t checked out the reference guide and reading this thread:

Tile Map Shortcut Keys
Shift + Left-Click = Erase Tiles
Ctrl + Left-Click = Select Tiles
Alt + Left-Click = Pan Scene View

Following keys only work if focus is on the Scene View. So if you just selected a tile from the palette, Right-Click in the Scene View to get focus first.

Y = Flip selected tile Up or Down
X = Flip selected tile Left or Right
. (Period) = Rotate Clockwise
, (Comma) = Rotate Anti-Clockwise

1 Like

But you do bring up some good suggestions though.Thanks… Currently the cursor doesn’t change but the icon on the palette is selected though. Is not very obvious though.

Other tools that would be useful:

  • Set tilemap layer (max) size (if want to make level with grid of 64x64, have to manually calculate tiles?)

  • Show coordinates in which tile (X,Y) your mouse is in the current layer (if want to place certain object at same height in large layer, would be easier to do if know the coordinate)

2 Likes
  • Using keyboard (arrowkeys) to scroll/pan Palette window if its active, even zoom/in out with keyboard + - could be nice

  • Difficult to see which tile in palette is selected (thin white outline not really visible, especially it tile has some white also)

  • Flipping tile that has pivot at Bottom Left, makes the tile go “outside” current tilemap cell (since its flipped from the Bottom left… probably more useful if it would still flip from center, so can use it in that cell where the cursor is…)

Oh’noes… I had scene window maximized while painting tiles,
then somehow wrong layer was active, drew half of the background to main layer… Oo
(With coordinates and active layer name display maybe it would had not happened… : )

or maybe tilemap layer locks?
2670809--188499--upload_2016-6-9_18-19-51.png

also,
If tilemap layer gameobject is disabled, you can still modify it, like erase (if its selected in hierarchy)

2 Likes

Locking tilemaps would be pretty neat.

I’d throw in a dropdown list with all possible tilemap layers in the scene, so you don’t have to search through and click on them in the hierarchy view. Gets cumbersome as the scene fills up with other gameobjects and if you have multiple tilemaps with their own layers.

1 Like

Any sort of layer system like photoshop has would be great

Is there a way to clear tilemap?

**Ok, doing Reset on the TileMap component works

How about if in scene window could have “zoom to actual size” button or shortcut key?
like in photoshop you can zoom to 100%… (actual size being the pixel perfect size)

Also Pressing F takes you always too far (with all objects in unity),
and if you press F two times while tilemap layer is selected, it just pans to the pivot…
pressing F twice with tilemap could have some other use…(like zoom between actual size, zoom to frame object)

Cannot clone (eyedropper pick) empty tile,
it would be nice to just get the null tile selected as brush (when pressing ctrl), so can use it as an eraser…

I second the selection box idea of being able to cut/copy and paste a selection.

It would be extremely useful especially when building giant levels. Currently I would use it to move independent sections around, testing them in various parts of the level.

copy paste is a basic requirement in any editing software

1 Like

using selection box (with ctrl pressed) works quite fine as copy-paste, can make big selections too.
and i think could erase with that big selection by pressing shift, so its almost like cut…

Yes you can, thats a typical workflow for me, ctrl-drag to select then shift click to erase as a Cut.

What’s the hotkey to activate Brush mode while you’re currently moving game objects around in the scene then want to repaint tiles?

1 Like

Currently working on implementing hotkeys.

1 Like