Search Unity

  1. Unity 2019.4 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  3. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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:
    726
    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:
    3,809
    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.
     
unityunity