- Home /
Camera problems when reloading scene
I have a single-scene endless runner game, where when you die you press restart button and the scene reloads itself. The problem is that when I reload the scene, the camera doesn't "spawn" to the exact same position as when you start the game, but shifts to the right. I think why this happens is because the scene takes too long to load and so camera lags behind. Have you had similar problem or know how to deal with it ? By the way my game is running at constant 60fps and I also have a camera pan animation when you press play button. When start button is pressed: When restart button is pressed:
Answer by AarnasS75 · Oct 13, 2020 at 12:45 PM
I fixed it, the problem was that at the start I made game time to be equal to 0. I did that so that I wouldn't trigger camera animation, but all I had to do was just disable that animator script and leave game time to be 1. I'm an idiot.
Your answer
Follow this Question
Related Questions
CineMachine without Timeline? 1 Answer
How to force the game to be stretched to fit the screen? 1 Answer
Off center projection matrix does not move skybox 0 Answers
I need help with a model 0 Answers
Skybox not moving (camera issue?) 1 Answer