Is it possible to get mouse events outside of Play Mode?

I want to make a small feature to simplify development, but for this I need to get mouse click events simply in the Editor, without starting Play Mode. Is it possible?

Which part of the editor? Scene view or the inspector?

For the scene view there is Gizmos and Handles. The Event class should work for either inspector or scene view.

I need for Scene View. In short, I need to be able to understand when dragging a scene object when it started and when it ended. And this is without launching Play Mode.

Then what is what custom editors and the handles class are for.

1 Like