- Home /
Event.Use() not working for left click
I'm trying to make some voxel system for a 2.5D game, and I'm using a custom editor to edit the stage from the scene view.
My problem is that when I press the left button of the mouse to place a block, it happens, but the object loses focus to. I am using Event.current.Use(), and it does prevent the left and middle ones from moving the camera and such, but the object keeps losing focus. Is there a way to prevent that from happening?
My version is Unity 5.6.1f1, btw.
EDIT: I found a solution here: http://answers.unity3d.com/questions/173950/disable-mouse-selection-in-editor-view.html
Your answer
Follow this Question
Related Questions
Scene View Axis of Movement 0 Answers
Create a custom prefab stage 0 Answers
SceneView GUI uses different skin on component toggle - bug or mistake? 1 Answer
Possible to set 'Scene Gizmo' position in custom 'Scene View Window'? 0 Answers
How can I bring to front a window called by an script in unity? 1 Answer