Most games that have controller support communicate which button corresponds to which action via labeled icons that appear somewhere on the screen. The UI Assistant’s Hint Manager allows you to set up, and display such context-based Hint Snippets with minimal effort.
The Hint Manager is a singleton component designed to manage hints across your project, with the help of Hint Contexts. It must be attached to a prefab to ensure proper behavior, and at least one instance must be placed in a scene, preferably the first scene that appears when launching your project.
The first child under the Hint Manager that contains all other objects.
The layout that will be instantiated to contain a single Hint Context's entries.
The Hint Snippet that will be instantiated to display a single Hint Context entry.
An optional Boolean type Option Entry that can enable users to hide hints via settings.
The time it takes for a Hint Context's entries to appear and disappear.
Unity Events to be invoked when the number of Hint Contexts becomes 1.
Unity Events to be invoked when Hint Contexts replace each other.
Unity Events to be invoked when the number of Hint Contexts becomes 0.
Adds a Hint Context to the stack, and displays Hint Snippets accordingly.
Removes a Hint Context from the stack.
Hint Contexts allow you to set up a list of hint entries for any context within your project. Each Hint Context will forward its entries to the Hint Manager to be displayed as Hint Snippets. Entries include labels, and optionally, one or several button icons.
Note that this setup does not require you to work with Hint Snippets, as that is handled automatically by the Hint Manager during runtime.
When set to true, Hint Manager will be notified when the Hint Context is enabled.
When set to true, entries' labels will require Localization Sets instead of strings.
One or multiple hint entries to be displayed as Hint Snippets.
Text to be displayed by the Hint Manager.
Check this box if the prompted function requires multiple buttons to be pressed.
Icons used to refer to specific keyboard or controller buttons.
Notifies the Hint Manager to show this Hint Context's entries.
Notifies the Hint Manager that this Hint Context's entries should no longer be shown.
For Hint Contexts to work, your scene must have a Hint Manager. Otherwise, you will receive a "Hint Context failed to display hints; please add a Hint Manager to your scene." warning. The Samples/Prefabs folder contains a „HintManager” prefab, ready to be used.
A Hint Snippet’s task is to display a hint entry’s parameters, defined in the Hint Context. The Samples/Prefabs folder contains a “HintSnippet” prefab, referenced by the “HintManager” mentioned above, ready to be used.
Image that will be instantiated to display the Hint Context entry's button sprites.
Graphic that will appear between icons if the Hint Context entry prompts a button combination.
Graphic that will appear between icons when the Hint Context entry lists multiple buttons.
The Text Mesh Pro UGUI that will display the Hint Context entry's label.
Sets the Hint Snippet’s parameters based on a Hint Context entry. This is handled by the Hint Manager.