- Home /
Wipe transition between two cameras
How can I implement an horizontal wipe transition (controlled by a slider) between two cameras which share the same perspective, like this:
I need to keep the same perspective on both cameras, so simple changes to the viewport or field of view will not achieve the desired effect. Basically, the effect would be equivalent to applying a 2D mask on the front camera.
Thanks.
huh ?
you want to "wipe" form one camera to another is that right?
note that it's O$$anonymous$$ for the two cameras to be in exactly the same place.
exactly, but I want to do that with an horizontal slider controlled by the user. I will edit the question to make it clearer.
like I said on the question, changing the viewport will not do. when you change the viewport width the entire scene is resized to that width. What I want to do is to "remove" the area of the viewport at the right of the slider.
no... actually if you move the camera you are changing the perspective, which breaks the seamless transition effect.
Your answer
![](https://koobas.hobune.stream/wayback/20220613081546im_/https://answers.unity.com/themes/thub/images/avi.jpg)