How to make Cinemachine follow an object that is instantiated later on?
Hi everyone,
Previously I've been having the Cinemachine Virtual Camera script follow my player without any issue, but I've recently made a switch in my game where my player is now a prefab, and is instantiated into the scene when the player hits "space" to start the game. How can I get the CM Virtual Camera to recognize when my player has spawned in and start following? I'm not sure what scripts would be helpful to see, but previously I've just been dragging the transform of my player into the "follow" field in the inspector for the CM Virtual Camera. However, since my player in instantiated later, it is called Player(Clone) and I cannot type into the field and
Thanks in advance!
Your answer
Follow this Question
Related Questions
How to stop the camera when the player has reached the edge of the level? 2 Answers
How to set Camera Limits in Unity that would stay accurate for different screen ratios? 2 Answers
How to achieve smoother camera and gameplay? 0 Answers
2D Cinemachine weird behavior for non rectangular confiner 1 Answer
2D Sample Camera Script malfunctioning 0 Answers