Can't get mouse input in Scene View (Editor)

Hi

I have seen many examples on the forum using Event.type == EventType.MouseUp, but I can’t seam to get any input from it, except in one case when I click a 3d handle so it repaints, but otherwise it does always return false.

Does anyone know what I’m doing wrong?

public void OnSceneGUI () {
		Event currentEvent = Event.current;
		
		if(Event.current.type == EventType.mouseDown) {
			Debug.Log ("Click...");
		}

I’m having the same problem. Did you ever figure out what was wrong?

Not exactly, but I managed to it to work by adding a handle control distance with a value of zero:

HandleUtility.AddControl(-1,0);

I think that’s how it should be written.