Hi there,
im using a virtual camera with a Framing Transponder:
nothing special here. This works as expected:
The 4 GameObjects/Tiles are in frame. However, my goal is to align the Group on the bottom of the screen
regardless of resolution or orientation. I tried every option for the transposer but couldn’t get it to work. Applying a simple offset doesn’t work since it seems to depend on the screen resolution which makes it unusable for my use case. Do you have any idea how to achieve the described behaviour?
Thanks in advance!
You mean that you want the objects to be at the bottom, and the camera oriented so that the line of objects is parallel to the bottom edge of the screen? There is no built-in way to do that with the Framing Transposer. The Framing Transposer will never change the rotation of the camera, it only adjusts the position and FOV in order to get the desired framing.
You need a different approach, one that both moves and rotates the camera. You will probably need custom code to calculate the appropriate camera position and orientation taking into account the aspect and FOV as well as the orientation of your target.
Part of the problem is that the request is vague. What does it mean to “align the group on the bottom”? Can you constrain the problem a little more clearly?