Today, I tried to create different scenes for the same content, and then I made the camera and player into prefabs. However, during runtime, Cinemachine returns to the player’s position, but it doesn’t follow the player when it moves. Additionally, after running, the “Follow” and “Look At” fields become “None”. I searched online but couldn’t find a solution. Please help and thank you very much。
You have to set the LookAt and Follow targets in the prefab. In a prefab, these will only persist if the targeted object is also in the same prefab. Otherwise, when you instantiate the camera and player prefabs, you will have to re-assign those references to the instanced object.
You can either write some code to do this, or alternatively put both player and camera in the same prefab, as siblings under a common parent.