I would like to extend editor with on click spawning prefab from a set of prefabs.
To be more precise It would look like this:
I would have a scriptable object with a set of prefabs, I would than open a window and drag this SO onto specified field. Click on a “Start” kind of button, and from now on every click on the scene would raycast to it and spawn prefabs at position with orientation derived from normals of the surface.
What I especially don’t know how to do is to take control of the cursor so clicking somewhere will override default behavior of clicking on the scene.