- Home /
Looking for picture in picture effect using Canvas Elements and Cinemachine follow target
Hello!
I'm looking for a solution for a problem I've been dealing with the past few days.
I'm trying to achieve the following:
Within the white space is a Canvas I'm using mask to hide a larger area, the player dot should be able to move towards the edges and the white space should move with them. There'll be coloured dots within this space but the player should be able to move and explore a larger space, this should move within that confined area.
My attempts at a solution has been using Cinemachine 2D Camera to follow the player, this involved setting up a 2nd camera and a separate canvas to only track the minigame's specific window and using the player as the follow target, I played around with the settings but could only see that the camera was infact moving around, but the canvas was staying put.
The end result should mean that in the below screenshot the selected element would stay within the screen and the coloured circles would move accordingly.
I'm open to alternate solutions to this I've definitely overseen, and thanks for any and all answers! :)
Your answer
Follow this Question
Related Questions
UI Elements Not Rendering Properly on Android 1 Answer
Canvas Screen Space Issue 1 Answer
Move an object in world space on the viewport 0 Answers
Unity 2D not rendering images in Canvas 1 Answer
3D background effects in a 2D game 2 Answers