What I mean by “clamped billboard” basically like a billboard gui but it can’t go offscreen and crawls along the edges of the screen, like something you see in madcity or something. So far I clamped it into the screen by computing its edges, math.clamp-ing them, and compute the new position from those edges (is this a good way to do it? it works at least).
I am using WorldToScreenPoint/WorldToViewportPoint to get the gui’s “focus” point/“adornee” point, then clamping the gui inside the screen, but when the camera looks at opposite from the focus point, the WorldToScreenPoint/WorldToViewportPoint returns a vector3 whose x and y coordinates are inside the screen. Then it appears as if the focus point is somewhere else then where it should be.
Here is a visual example of my problem

The gui with the text “-20” is what I call the “clamped billboard”. The yellow brick is the focus point. Its following the object and clamping correctly, but when I look opposite direction from the focus point, the gui comes in the middle of the screen, appearing as if the focus point is there (this is because of WorldToScreenPoint). How could I fix this to achieve an effect that you see in madcity or something?
Code not provided because I believe it has nothing to do with the problem. Ask me if you still need to see the code.