Making gizmos editable

Hello

I am writing a small script to edit polylines. It is already working, using the inspector to add points, and the specific position where points will be.

I would like to make this more versatile, making the user able to drag the line in the scene view.

I was able to draw gizmos on all the points, with a OnDrawGizmos method. But I am not sure how to detect if a gizmo gets selected (it seems they can’t) and if it is dragged (and in the end, what is its new position).

Probably I am doing all this wrong :slight_smile:

Advices are welcome.
Cheers.

Attach a GameObject to the point.

Hey

Hmms, not sure how that would work, but it might do the trick…

So, there’s no other simpler way to drag gizmos?

Thanks.