Download

Clamp a widget component so it doesn't leave screen bounds

I’m doing a top down game and I have clients that order beer and other food items in the game to be delivered. When they order a widget appears above their heads and shows on screen but if they’re off-screen you can’t see them order and if the camera moves, the widget moves off-screen.

I’d like to make it so that no matter what, that widget is visible on-screen regardless of if the actor it’s attached to is actually visible, is there any way to do this?

Bearing in mind this is a local multiplayer game with a single, shared viewport.