'Im trying to click on a ui button but the cursor goes into the camera and disappears

Im trying to click on a ui button but the cursor goes into the camera and disappears video for reference -> https://youtu.be/QmF9lwbkuCw



Solution 1:[1]

can you post your code please, in the meantime I'd assume it has something to do with Cursor.lockState and Cursor.visible so if you wanted to debug it you can try these in void Start/Awake

//to lock in the centre of window
Cursor.lockState = CursorLockMode.Locked;
//to hide the curser
Cursor.visible = false;

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jai Sloper