[SOLVED] [Bug] Camera does not rotate in MainMenu after playing in Project Boost

Hello people,
here is a link to show my problem: https://imgur.com/bG5qrIJ
I use a CameraRotator game object with CameraRotator component. This game object holds the MainCamera so i can use the CameraRotator position as pivot to rotate the MainCamera around. In this link (https://pastebin.com/0QUTtBW6) i posted all the code involved in the action of rotating and returning to the main menu, they are quite simple so i don’t know why is not working.

Hi Lorenzo,

Have you already checked your console and your Hierarchy when the start scene gets reloaded and the camera does not rotate anymore?

I used a Debug.Log() in the CameraRotator before rotating the transform. It works when the game starts and even when the player returns to main menu. Seems that the problem is inside the transform.Rotate().
Here is the updated code: https://pastebin.com/0QUTtBW6
And here the video showing the situation in playmode: https://imgur.com/bxr84rh

Found the problem, when pausing the game i set Time.timeScale = 0f, but i forgot to reset it to 1f when returning to menu :smiley:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms