I have a general question here. I am using the FPS Controller from the standard assets. My issue is this. I have a menu that I added to give me an exit button as well as some settings but for some reason when I press escape to bring it up and try to click something my cursor disapears again and does not click what I want to click. How can I fix this situation?
When pressing the escape key in the editor, you get your cursor back, but this is not the same in actual project builds; this is just a feature of the Unity editor. Its up to you to show and hide the cursor appropriately. You will need to change your cursors lockstate and visibility attributes when you press the escape key, and then change them back again when you return from your menu back to the game.
Also, its probably worth noting that if you’re creating something like a pause screen, the camera will still move with your mouse. A quick fix is to set your timescale to 0, but I don’t actually know if this works or not. A more secure method would be to disable your camera movement script when the menu is opened.
Hope this points you in the right direction. -Greg