- Home /
Question by
robotmaker01 · Aug 08, 2012 at 02:03 PM ·
cameramouse
camera rotation with mouse,like minecraft
i want to make the camera rotate as i move the mouse,and in each frame mouse cursor get back to the center of the window,if u played minecraft u know what i say. and i want the cursor to be invisible. how to do this?
Comment
Best Answer
Answer by IndieScapeGames · Aug 08, 2012 at 03:00 PM
As far as rotation goes, there is a mouse look script already included in Unity. Refer to Sketcher's answer for the Screen-lock cursor. The mouse look script is in the standard assets when you create a new project.
Answer by sketchers1 · Aug 08, 2012 at 02:13 PM
I believe this link contains what you are looking for: http://docs.unity3d.com/Documentation/ScriptReference/Screen-lockCursor.html
thats one of the thing i want,what about camera rotating?