Is there a simple solution for tooltip detect that if it is out of screen it adjust its self to screen border so it does not go over it?
The native tooltip system already does that:
A better question here is what are you doing to override it? How do you make & update them?
If you wanted to make it all custom (because you like challenges), you can calculate it. You know the viewport size and you know the dimension of the widget.
It’s not really my setup. It’s the standard way the engine handles tooltips:
In your example you’re doing it all manually (which may be fine in case you need something the engine does not offer by default). You’d need to modify the Set Position data by clamping it, example:
Ignore the de-projection, use the Mouse Postion instead. But if you’re using mouse values to position it all, the 1st method already does that… So maybe it’s better here. Not sure what other plans you have to the tooltips - hard to advise.
Another way to display tooltips that gives one quite a bit control & flexibility is the Menu Anchor. Nifty little thing.
Thank you for solution. I was watching Ryan Laley inv system tutorial. And i thought if he is doing this than it must be the right way.
After seeing ur posts i searched for my older project and tooltip was created with binding like in ur example.
Thank you. And have a grate day.