Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Set VirtualCamera from script on runtime

Discussion in 'Timeline' started by SalchipapasGames, May 30, 2021.

  1. SalchipapasGames

    SalchipapasGames

    Joined:
    Sep 8, 2018
    Posts:
    7
    Hello,

    I have multiple Cars in additively loaded scenes. The all use a playable director and two time line assets:
    • "EnterCar"
    • "LeaveCar"
    They all use the same animation for a character and for opening the door. I set the track bindings through a script.

    The only difference is that each car has its own "DashCam" and I switch from the first person camera to it when entering the car using a cinemachine track.

    Bildschirmfoto 2021-05-30 um 20.09.00.png

    How can I assign a different virtual camera to "DashCam" in the timeline during runtime?
     
  2. SalchipapasGames

    SalchipapasGames

    Joined:
    Sep 8, 2018
    Posts:
    7
    Gregoryl likes this.