Search Unity

Issue when removing FreeLook gameObject from scene root

Discussion in 'Cinemachine' started by Seith, Sep 11, 2018.

  1. Seith

    Seith

    Joined:
    Nov 3, 2012
    Posts:
    715
    Here's a potential bug report: When changing the default game object CM creates ("CM FreeLook1")'s location in the scene hierarchy then CM breaks down, spitting out a flood of errors. Basically what happens is the Rigs disappear from the bottom of the FreeLook's inspector and CM complains that it can't find them. The errors go away if I put back the CM FreeLook game object at the root of the scene.

    My understanding is FreeLook should work, whether it's at the scene's root or not (I like to keep things organized)...
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,848
    Indeed FreeLook does not depend on being anywhere in particular in the hierarchy. You can put it where you want. I'm pretty sure that the weird thing you're seeing is due to something else. The question is: what?

    There is a known issue when copy/pasting a FreeLook behaviour - you will sometimes see that. For sure you should never copy/paste a FreeLook onto a fprefab - that will almost always cause problems. Instead, copy/paste onto an instance in the scene, and apply the changes back to the prefab.