Question by
redskidy · Apr 01, 2018 at 09:53 AM ·
c#editor-scriptingeditorwindowcursorlock-cursor
Lock the cursor inside the scene editor window ?
Hi, I'm trying to make a custom editor for my game that places an object when I left click but if I look around (with right click + wasd) and my cursor gets out of the scene editor window, when I click it loses focus and doesn't do anything, so I need to lock the cursor inside the editor. The problem is that Cursor.lockState only locks the cursor in the game window. Is there a way to make this work or do I have to move my custom editor in game ? thanks
Comment
Your answer
Follow this Question
Related Questions
How to Have a ReoderableList in a Custom Editor Window 1 Answer
How to get rect a window of editor? 0 Answers
How do I relock my cursor? 0 Answers
Editor Window 1 Answer
Modify Array in Editor Window - 2020+ 0 Answers