Hi,
I have an editor script that isn’t receiving any EventType.MouseDown events in the OnSceneGUI function. It receives other messages including MouseMove, but not MouseDown.
Does the built-in terrain inspector call Event.current.Use even when no tool is selected? If so, isn’t this a bug? If not, is there something special I need to do receive this message?
Thanks
if you have the terrain selected, there is always a tool active actually.
Thanks for your post. But even if there is always a tool selected, the terrain painting tools manage to play nice somehow with say, the transform, but I can’t seem to get MouseDown. When there is a MouseDown event, I get a Used event which indicates somebody is eating it even though nothing is selected or properly used the event, so felt like a bug…
In the doc for OnSceneGUI it says:
What is the way to implement terrain tools as eluded to in the doc without MouseDown events? Is there some other way?
Thanks!
Not sure how to do it in relation to the terrain
Bump. Anybody can help with how to get editor scripts accepting mouse clicks when attached to a terrain object?
I alos tried creating an empty object and attaching the script to that, and it works for the first click, but I couldn’t keep the focus of my dummy using Selection.activeObject.
Anybody know how to force myself to remain selected even though the user clicked on something else?
Thanks