- Home /
Locking cursor, while moving camera.
Hello,
I want to achieve effect like on this video(first 12 seconds): https://www.youtube.com/watch?v=IUbD4tUJD-4
As you can see I want my cursor to change it's icon and be "freeze" in one place, while Im clicking right mouse button to start move around the camera. The problem is I cant freeze my cursor. I tired to use Cursor.lockState = CursorLockMode.Locked; and then unlock it, but after I release my right mouse button the cursor is on the middle of screen. I found that some1 said to make "virtual cursor" but idk if it would work like i want to and if there wont be any problems with GUI in the future. Also i found GetCursorPos and SetCursorPos so I can hide my cursor when right click then I can unhide it and set its position, but I'm a beginner and I cant use it. I would be very thankful if you show me how can I use it or maybe there is an easier way to achive that.
Your answer
Follow this Question
Related Questions
Forward and back movements with a camera emulating an isometric view 1 Answer
Buttons move with the camera and I don't want that 0 Answers
Help with Texture following Camera!/How to create an effect like this in Unity 3d? 1 Answer
TPS camera in multiplayer... 2 Answers
How do I get my camera to rotate around the y=0 coordinate it's looking at? 0 Answers