Question by
reguig-abdo · May 05, 2017 at 10:33 AM ·
cameracamera rotatecamerascamera viewportcamera rotation
Camera rotation problem
I'm creating a project, I'm using default camera as my main camera. I made camera rotation on mouse movement.The problem is if I set camera rotation on Y in editor to something except 0 something like(90,180 or -90). When game start and I click with mouse to start rotating my camera the camera snaps in the beginning or on first click to 0. I don't know why I searched for a solution for 1 week, but nothing. So please help me, and thanks in advance
Comment
It sounds like a variable initialization problem. Could you provide your script that you set on the camera ?
Do you have a version where target is defined ? I never used that...