Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Resolved How to create a 2d cinemachine camera to be endless?

Discussion in 'Cinemachine' started by antonioniii, Oct 10, 2023.

  1. antonioniii

    antonioniii

    Joined:
    Jun 15, 2020
    Posts:
    27
    Currently I'm using confine 2d and a bounding box of the parent gameobject's collider. But I would need the camera to be able to go endlessly up the Y axis and not be restrained. How would I go about this? Any help would be very much appreciated. Thank you. :D

    Related images of my project
    https://imgur.com/a/2FEuXIX
     
  2. antonioniii

    antonioniii

    Joined:
    Jun 15, 2020
    Posts:
    27
    Nevermind. Solved for now.

    I already had some logic for my Camera to be following an empty gameobject who only moved up when my player moved up (not down). So because it was restricted to follow a gameobject whos Y axis only when increasing and ignore the X axis, I could just disable the confiner component on the camera.