Question by
luciangrapa · Aug 05, 2020 at 09:49 AM ·
triggermousefps controllervisibilitylockcursor
Enable/Disable Cursor.visible / CursorLockMode.Locked on Trigger
Can someone please help me with this matter ?
I have a first person controller which by default in its script the Cursor is set to Cursor.visible = false; and Cursor.lockState = CurosrLockMode.Locked;
I want the Cursor to be visible and Cursor.lockState to NOT be Locked when I enter a trigger box. Please see the image attached. And of course to revert to being false and locked when exiting the trigger.
I have tried different possibilities that other has explained here but non of it works. Nothing happens on entering the trigger box... I am out of solutions.
Thank you !
image.jpg
(469.9 kB)
Comment