Search Unity

Question cinemachine confiner not working(maybe -^-)

Discussion in 'Cinemachine' started by Yggdrasil-, Apr 19, 2022.

  1. Yggdrasil-

    Yggdrasil-

    Joined:
    Apr 19, 2022
    Posts:
    3
    HI!
    im a beginner in unity3d , i use a Cinemachine in my project, and add a confiner
    upload_2022-4-19_22-55-23.png
    the Confiner looks like
    upload_2022-4-19_22-56-12.png

    but when i enter my game , i can still see the skybox
    upload_2022-4-19_22-57-3.png

    i don't know what wrong with my project

    Thanks in advance
    Orz !!
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,711
    If you switch the main camera from perspective to orthographic, the CM Confiner will show a new option: confine screen edges. Enable that.

    Alternatively, you can use the CinemachineConfiner2D extension, which will confine screen edges even with a perspective camera (however, your art looks pretty 2D so it's not clear to me why you have a perspective camera).
     
  3. Yggdrasil-

    Yggdrasil-

    Joined:
    Apr 19, 2022
    Posts:
    3
    i just follow the unitylearn lesson,maybe i did something wrong.
    i'll try the orthographic,thank you very much, ♪(゚▽^*)ノ⌒☆ !
     
  4. Yggdrasil-

    Yggdrasil-

    Joined:
    Apr 19, 2022
    Posts:
    3
    It worked ! Thank you!:)
     
    Gregoryl likes this.