- Home /
Question by
theGreatSlutze · Jul 12, 2018 at 11:56 AM ·
c#2dtilemapcustom editorcustom-inspector
Using Tilemap draw tools to change properties with custom editor
I'm writing a script that will replace the tiles on my 2d tilemaps with a new set of tiles - for example, if my player flips a switch that creates a bridge. I think I can use a custom editor to make this more flexible. The most basic solution would be to have each switch script specify the tiles it will change (represented by a vector2 [tile position] and tile prefab), but it would be great if I could make a custom editor that populated those tiles via painting, the way you do when drawing tilemaps.
I'm pretty new to custom editors; does something like this seem achievable? If not, how would others address this problem?
Comment