Search Unity

Is it possible to capture when a camera goes from "standby" to "live"

Discussion in 'Cinemachine' started by mrCharli3, Aug 21, 2019.

  1. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    976
    I have some code that resets my camera to place it behind the player after a transition. However I have no good place to call that code when Im cutting from a cutscene back to the playercam. Any advice? Currently the freelook cam on the player just gets kind of randomly placed, but I want it to always be "reset" when going from a cutscene back to the player cam.
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,725
    Have you got InheritPosition checked on the FreeLook?

    upload_2019-8-26_10-28-58.png
     
  3. mrCharli3

    mrCharli3

    Joined:
    Mar 22, 2017
    Posts:
    976
    I do, but I must admit I have never opened that transitions menu, for some reason I havent seen it. I see some stuff I can work with now. My silly mistake. Thank you!

    For people w the same problem, simply unchecking "Inherit position" fixed my issue. And if it didnt, there is literally an event for when the camera goes live which was what I was looking for to begin with :)
     
    Last edited: Aug 26, 2019
    Gregoryl likes this.