Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Confiner 2D

Discussion in 'Cinemachine' started by Silverthorne, Jan 9, 2019.

  1. Silverthorne

    Silverthorne

    Joined:
    Dec 1, 2018
    Posts:
    9
    Hi! I'm very new to both unity and the use of Cinemachine. I have an issue when setting up a Confider 2D, where when the camera reaches the box collider, the camera sets its transform.position.y to minus 458 or more! Same with both left/right and top/down of the collider. Any idea what I'm doing wrong? The player stays at his correct position.

    I followed this guide for the confiner:
    https://blogs.unity3d.com/2018/07/17/cinemachine-for-2d-tips-and-tricks/
     
  2. Silverthorne

    Silverthorne

    Joined:
    Dec 1, 2018
    Posts:
    9
    Okay. I deleted the Cinemachine items in the Gizmos folder, deleted the virtual camera and the confiner gameobject, restarted my project, added everything once more and suddently it worked!