- Home /
How can i detect event Mouse Down or Mouse Up on function OnDrawGizmos? (C# script)
I am doing a script to make easy some stuffs on the editor, then i am using the function OnDrawGizmos to draw stuffs on the screen but i need to make something when a button of the mouse is down or up. How can i detect that?
Answer by UnityCoach · Dec 15, 2016 at 09:35 AM
You can use those events : https://docs.unity3d.com/ScriptReference/EventType.html
thanks for you help. but that doesnt work OnDrawGizmos, at the end i used OnEsceneGUI on a custom editor script and Event.current.type
Your answer
Follow this Question
Related Questions
Trying to trigger multiple objects by holding down the mouse with OnMouseDown 1 Answer
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How would I slow down spinning toward the mouse? 1 Answer
Unity Ui. Why constant pixel size option in Canvas Scaler don't work with mouse? 1 Answer