[HELP] - Keeping UI element on screen
Posted: Wed Nov 16, 2022 5:29 am
Hello there,
So I have a UI element in a Screen Space - Overlay render mode canvas. And I'm trying to keep it inside the screen boundaries. Since I am using the Bubble Template Standard UI Subtitle Panel prefab, that has two panels (Main Panel and Bubble Panel) with Content Size Filter & Horizontal Layout Group components, and I'm having a hard time getting the correct sizes/positions of the Bubble Panel (is the one that I want to keep inside the screen boundaries).
Do you have an idea of how to approach this issue?
Here's an image of what I'm trying to say:
Thank you in advance!
So I have a UI element in a Screen Space - Overlay render mode canvas. And I'm trying to keep it inside the screen boundaries. Since I am using the Bubble Template Standard UI Subtitle Panel prefab, that has two panels (Main Panel and Bubble Panel) with Content Size Filter & Horizontal Layout Group components, and I'm having a hard time getting the correct sizes/positions of the Bubble Panel (is the one that I want to keep inside the screen boundaries).
Do you have an idea of how to approach this issue?
Here's an image of what I'm trying to say:
Spoiler
Thank you in advance!