How would one implement this using scripted tiles?

Is there a way to not make the tiles automatically connect to their neighbouring tiles? It’s hard to explain the behaviour I am after, so I made a GIF:

My hunch is that it requires a seperate paint tool and a corresponding scripted tile. Will the tile tool palette be extensible in the future?

You’d make a custom brush and a custom tile.

Either the brush would store extra data in another component about where it wants to autotile. Or you could have the brush paint with two different tiles. One would auto-tile and one would not.

For your brush, you would have a custom inspector with a checkbox/hotkey where you can say if you currently want to paint with autotiling or not. We offer custom inspector for custom brushes with OnPaintInspectorGUI() callback.

The custom brush stuff was left out of docs (the API docs are still there, look for GridBrush), because it is quite unfinished. You can try to make your own brush by making a new class that inherits GridBrush. When you do that, you should see a brush picker appear below the palette.

1 Like

Thanks! :slight_smile: