Hi, sorry to reiterate a question that I’ve seen has been posted before, but after looking at those threads, I’m still unsure which script to place the code Screen.showCursor = false; into to hide the cursor when I maximise on play, to play a scene of a game.
Would it go into the MouseOrbit script?
Or maybe FirstPersonControl script.
I’ve tried adding the code to several, but the cursor’s still visible when I maximise on play or build and run.
I’m kind of new to this too, so I am probably asking a stupid question, but I have to ask it. Thanks.
When I’ve used it, I had to put the lines in twice, once during a start() or awake(), and again in some mouse event (input.getmousebuttondown), so that I know that the application has mouse focus when i try to hide the mouse cursor.
With only a single attempt to hide the cursor, what I gather is, it tries to hide the mouse, even tho the app doesn’t have mouse focus.
Thanks for the response. I’ll keep trying.
I’m thinking of buying some books about C# and Unity. I really have some study ahead of me. Any good book recommendations could be handy. I’ve got me eye on two. Learning C# by Developing Games with Unity 3D Beginner’s Guide - Terry Norton Beginning 3D Game Development with Unity 4: All-in-one, multi-platform game development - Sue Blackman. I think these will help me.