Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Cinemachine Prefab Workflow

Discussion in 'Cinemachine' started by ElectricD, Nov 2, 2018.

  1. ElectricD

    ElectricD

    Joined:
    Feb 2, 2018
    Posts:
    1
    Hello everyone! First post here.

    So we have a procedural game where we have to spawn our special camera sequences at runtime and we decided to use Cinemachine for our camera system.

    What we do is create a root GameObject as our PlayableDirector and that has the virtual camera and animated objects as children.



    We spawn those as Prefabs and the CinemachinBrain is switching to the virtual camera from the Prefab because it has a higher priority. The actual CinemachineBrain is created at runtime and just follows the virtual cameras.

    However we needed a more complex camera animation where we wanted to transition from virtual camera to virtual camera so the CinemachineBrain was dragged into the Timeline of one of the Prefabs. But that doesn't work because obviously the Timeline loses the reference to the CinemachineBrain because the Camera is not part of the Prefab.



    I looked into how people deal with this to not much success.
    I know that the CinemachineBlendSettings are an option but that loses that artist friendly timeline editor for making the transitions and when we get many cameras to transition from and to it gets very messy.
    So what is the actual best way to do transitions like this?
    It would be nice to be able to do it in the Timeline.
     

    Attached Files:

  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    1,733