-
Notifications
You must be signed in to change notification settings - Fork 5
Development: Tooltips
Sorra edited this page Nov 11, 2024
·
4 revisions
To add tooltips to a UI element follow these steps:
- Ensure there is a
RW_TooltipManagerin the scene - Create a Tooltip Style prefab that defines the style of the tooltip and any dynamic fields
- Add a
Tooltip Triggercomponent to the element you want a tooltip on- Tooltip Style: The one created above
- Body Text: as needed
- Tip Position: MouseBottomRightCorner
- Min Text Width: 200
- Max Text Width: 300

You can automatically update fields based on text fields in the UI.
- Add an
AutoUpdateTooltipFieldscomponent - Add IDs for the fields
- Add text or TextMeshPro fields with the content to place in these fields
- Add fields to the body text of the
Tooltip Triggercomponent - Set the content of the dynamic fields in the
Tooltip Triggerto `Dummy Text