Tooltip Map Assets
Last updated
Last updated
A Tooltip Map is a Data Asset that holds tooltip strings to easily manage them so that you don't have to find them in your Blueprints or code.
In this example, there are four tooltips, each with its own unique key. Any of these tooltips can be triggered using its key via Blueprint or C++.
The fourth example (MapExample2) has a key that can be replaced when triggering the tooltip. This means that the tooltip text can be modified based on player input or gameplay choices, such as the example below, where the key '{Name}' is replaced with the player name that the player has just entered through a different UI.
Note: Tooltips can be triggered via plain text/string values rather than using a map. The purpose of the map is to collect similar tooltips together so that the text is easy to find throughout the development cycle of a game. Therefore, if the text changes, the developer does not have to dig through code and Blueprints to find the tooltip value and modify it.
See the SH_TooltipTrigger_Example asset for examples of different ways to trigger tooltips via Blueprints.