GridMap enhancement - A signal or callback for on_cell_changed() #11855
Closed
Description
opened on Oct 5, 2017
The GridMap node would be an order of magnitude more powerful if I could have an editor script be able to detect whenever a cell has changed.
This could be achieved by any of a number of options. I'm not sure which would be the most appropriate method:
- A notification that i could check for in _notification()
- A signal (not sure if having signals that fire in editor/tool mode would be appropriate?)
- A method that could be overridden in a tool mode script that extends GridMap, maybe _on_cell_changed(cell_pos)
With this simple addition, I could write an auto-tile editor script in GDScript that I could share with everyone. You could have variation in tiles occur automatically; ie, place a tree tile and have a random one of six tree models spawn. You could have tiles automatically rotate in specific ways.
There would be lots of possibilities opened up by this.
Activity