Custom Editor Mode

Hi,
i am creating a custom editor mode for editing a tile based world. the tile objects such as floors, walls, etc are created on runtime according a simple array. the editor mode changes the array of a selected gridworld actor.
i am now struggeling to get a hold of the actor in the editor mode. i can draw my overlay if i check for a selected gridworld actor. i can also select tiles, that is storing the indexes of selected tiles in an other array. but now i have a the main mode widget and it has buttons to convert selected tiles to wall, floor,etc.
here is the questions: but how can i make sure that the same object is selected that i selected the tiles from. is it possible to lock selection in an editor mode, so that only one object is and stays selected? or is it possible to get something like onselectionchanged?
thanks for any answers

i found a solution:
including the object in the hitproxy so that when i click a tile the tile index and actor are available. then i save both in a array. so now i can even have the selection persistent for multiple gridworlds.

2 Likes