How to make boundaries for cinemachine?

Hello

I am trying to achieve same camera settings as in the video I am attaching below

Video: RC camera.mp4 - Google Drive

My project have similar concept as in the video, you go up on tapping and thus I want to achieve the same camera settings

As you can see, when I tap and cube goes up the camera starts moving only after cube have reaches a certain position, and after going up a bit the camera locks and doesn’t allow to go down anymore. I want to have same as this, go up and camera moves after a certain position and after a certain distance it locks. I am using cinemachine. If there’s any way to do it without script or I have to code. Please help
Thanks

I don’t think you will be able to do this without some simple scripting. I would make an invisible GameObject which will serve as the camera’s Follow target. Attach a custom script to it that will move it upwards to follow the player if and only if the player is higher than it.

Then make a CM 2D camera (Framing Transposer in Body section) that uses the invisible object as a Follow Target.

I see, I am kinda new to cinemachine and unity tho, but how to do the boundaries with script then

Maybe it’s time to learn some Unity scripting. This is not Cinemachine-specific, just a basic script to make a game object position itself in relation to another.

Here are some learning resources: https://learn.unity.com/search?k=["q%3AScripting"]

Thanks, btw do you think cinemachine confiner would work? By limiting the cam movement