Problem when set active off/on UI element

Hi guys

Before go in game scene the canvas button work fine, but when set active off a canvas child element (and active an fps camera) and re-switch on (after the game experience is ended) this is visible but impossible clicked with mouse, it’s work only manually in the inspector flag “IS ON”.
The mouse click on button , but the cursor is hide every click.

Any suggestion?

Thank you

Have you made sure to enable the mouse again after disabling it for the First Person Controller? If not, run the following code along with activating the UI element!

Cursor.lockState = CursorLockMode.None;
Cursor.visible = true;

That will make the cursor visible and movable hopefully making you able to click the button. Please let me know if this works and good luck with your project!