- Home /
Cursor unlocking on player
Hello, I'm making console and inventory and I want to unlock cursor and make it visible when I press console/inventory button. I tried Cursor.lockState = CursorLockMode.None; Cursor.visible = (true); but I think FirstPersonController is blocking it. Any advise how to do it?
maybe try disabling the FirstPersonController if that's where you think the problem occurs. I'd imagine you don't need the controller to be active when you're in the inventory
Answer by Saiguru · Apr 12, 2019 at 10:18 AM
Hi @knightmar , The problem is with the MouseLook object that is attached to the FPS Controller component that is why we can see the cursor in FPS while pressing Escape Key. Check that script and modify.
Yeah, I already found that. I don't know if there's better way but I just set private bool m_cursorIsLocked = true; to public static so I can fast access it from anywhere. Thanks anyway!
Your answer
Follow this Question
Related Questions
Cursor not working after changing scene 1 Answer
Standalone problem with cursor 2 Answers
how to make the cursor ACTUALLY lock 0 Answers
How to make my player fall when the cursor is unlocked 2 Answers
Lock the screen 1 Answer