Search Unity

Cinemachine disabled issue

Discussion in 'Cinemachine' started by Gungnira, Mar 2, 2019.

  1. Gungnira

    Gungnira

    Joined:
    Mar 2, 2019
    Posts:
    9
    Hello,

    I got a strange issue here.

    I got a Cinemachine vcam with the following target on my player-gameobject.
    But when I m destroying a child of my player-gameobject, the Cinemachine camera disable itself.
    This happens only, when the child got a collider2D as component.

    How can I fix this?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    That sounds pretty weird. Can you post images of your project hierarchy, so I can understand where all the relevant objects live relative to each other?
     
  3. Gungnira

    Gungnira

    Joined:
    Mar 2, 2019
    Posts:
    9
    Hello,

    I shouldnt make posts in the night. I found the problem: it was a script, which disable the vcam on OnTriggerExit2D(). I totally forgot about that. Sorry T_T
     
    Last edited: Mar 2, 2019
    Gregoryl likes this.