Search Unity

Cinemachine Virtual Camera not following if player spawns

Discussion in 'Cinemachine' started by generaltofu203, Dec 10, 2018.

  1. generaltofu203

    generaltofu203

    Joined:
    May 9, 2018
    Posts:
    40
    Hello everyone, I am using Cinemachine as my camera to follow my player who only moves on the x and y axis and I’ve just implemented spawning so now my virtual camera even though I selected my prefab and dropped it in, doesn’t follow the player anymore. How would I solve this? Through an extension?

    Thanks in advance
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,717
    Make sure you set the vcam.Follow field to the newly-spawned player