# Tooltip out of screen

**URL:** <https://forums.unrealengine.com/t/tooltip-out-of-screen/756657>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 25, 2023, 1:43pm UTC](https://forums.unrealengine.com/t/tooltip-out-of-screen/756657 "2023-01-25T13:43:43Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [January 30, 2023, 9:32am UTC](https://forums.unrealengine.com/t/tooltip-out-of-screen/756657/4 "2023-01-30T09:32:41Z")

</div>

> [@Iscreamdeye](#):
>
> Can u show me ur setup?

It’s not really _my setup_. It’s _the standard_ way the engine handles tooltips:

> [@Is it possible to add a tooltip to a user widget object?](https://forums.unrealengine.com/t/is-it-possible-to-add-a-tooltip-to-a-user-widget-object/743327/2):
>
> Select any Visible native element inside the User Widget and: [image] This allows you to construct and automatically destroy a User Widget tooltip. If you Expose on Spawn variables, you’ll be able to pipe in data which the tooltip widget can use during Construct. You can, ofc, just use the Tool Tip Text instead (top of the pic) but having control over how tooltips look like & behave is pretty handy.

* * *

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:

> [@UMG Widget: Stay on screen - But how?](https://forums.unrealengine.com/t/umg-widget-stay-on-screen-but-how/123044/5):
>
> while there’s half a dozen ways to implement this, the gist is to subtract half the widget size from the viewport size and use it as a clamp: vid: [https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4](https://i.gyazo.com/7e60baa21a0fbe5e5796d81524b27671.mp4)

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.

---

_[View the full topic](https://forums.unrealengine.com/t/tooltip-out-of-screen/756657)._
