Search Unity

How could I keep the bounding shape attached to cinemachine when it gets destroyed and then regenera

Discussion in 'Cinemachine' started by Hussein_Attie, Aug 11, 2019.

  1. Hussein_Attie

    Hussein_Attie

    Joined:
    Aug 7, 2019
    Posts:
    2
    When I move to the next scene and I have a new cinemachine when I return to the same scene the bounding shape 2d get displaced I want a way to keep the confiner attached to cinemachine when it gets destroyed and regenerated
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    2,725
    You just need to set the CinemachineConfiner.m_BoundingShape2D (or m_BoundingVolume) member to the collider object in the new scene