- Home /
Question by
Wei149 · Jan 16, 2017 at 07:42 AM ·
editormoveeventmouse-drag
OnSceneGUI mouse Dragging
I have a plane. And I wanna to use the mouse Drag Event to select all the vertices in center area at the Editor time.
some thing like this
I try to use OnSceneGUI to do this. but OnSceneGUI cannot receive a mouse drag event. Do anyone can help?
private void OnSceneGUI()
{
var eventType = Event.current.type;
if (eventType == EventType.DragUpdated || eventType == EventType.DragPerform)
{
Debug.Log("Drag");
}
}
example.png
(109.8 kB)
Comment
Your answer
Follow this Question
Related Questions
Mouse Snapping? 1 Answer
Is there an event being fired off when the Inspector is being resized? 1 Answer
Left Click Up Event in Editor 4 Answers
Adding Tab support to TextArea's TextEditor (almost done) 2 Answers
Event Mouse not working correctly 1 Answer