Description Tooltip doesn't Respect Bounds

pako

Member
Hi,

I found a similar post Tooltip going off-screen and tried everything that was suggested (among many other things) but the tooltip just doesn't respect bounds, whether it is the Inventory Canvas itself or a special "bounds" panel.

So, I decided to use the description in a non-tooltip mode and report the issue.
 
Hi pako.

Are you able to reproduce this issue in a simple scene like the feature scenes?
If so could you send me that scene so I can reproduce it on m machine?
For me it works just fine, so I don't really know what the issue could be
 
Hi pako.

Are you able to reproduce this issue in a simple scene like the feature scenes?
If so could you send me that scene so I can reproduce it on m machine?
For me it works just fine, so I don't really know what the issue could be
Hi,

Yes, I reproduced it just now on the "1 Minimalist (Inventory Grid)" scene"

1. I set the game resolution to 1920x1080
2. I opened UIDesigner/Item Description tab
3. I set the Parent Transform to "Inventory Canvas"
4. I selected the "Standard" preset
5. I clicked on the Create button
6. I set the "Inventory Canvas" in the "Panel Bounds" Field of the ItemViewSlotPanelToTooltip component
7. I set the "Inventory Grid" as the "Item View Slot Container" field
8. I clicked on the "Bind Item View Slot Container" button
9. I started Play Mode
10. As I clicked on each Slot, progressively going towards the ones to the right, the Tooltip moved out of bounds.

I use Portrait rather than Landscape in the game I'm developing, so "out of bounds" is more noticeable.

By the way, I don't know if this is related, but I just noticed that as soon as I enter Play Mode, the "Parent Transform" and the "Item View Slot Container" fields in the UIDesigner/Item Description tab lose their settings, i.e. they are "automatically" reset to null when Play Mode is entered.
 
You'll need to set what happens when your tooltip gets out of bounds. There are many ways your UI can get out of bounds and many ways in how you can keep it inside.
It's up to you to play with the values until it feels right.

You can see when your UI gets out of bound by by checking the "Out of Bound" field at runtime.

Then you can adjust your Left/Right/Top/Bottom out of bounds offset accordingly to ensure it stays inside.
If you UI goes out of bounds on the right side, then setting the Anchor position to 1 is a good start to keep it in:


1737638184519.png

Play around with those values at runtime and once you have something you like, copy the component values by right clicking on the component name, then exit play mode and paste the component values


By the way, I don't know if this is related, but I just noticed that as soon as I enter Play Mode, the "Parent Transform" and the "Item View Slot Container" fields in the UIDesigner/Item Description tab lose their settings, i.e. they are "automatically" reset to null when Play Mode is entered.

That's normal UI Designer is a Editor tool. It should not be used while the game is playing so the panel gets refreshed and loses refrences.

I hope that helps :)
 
Back
Top