Skip to main content

TMP Action

The TMP Action component can be added to a TextMeshPro UI object to text along with multiple action icons.

"Figure 1"

Component Fields#

NameDescription
Player IdId of the Player to get action for
Update TypeUpdate method used for this component
Action LookupLookup type for action
Action NameName of the action
Action IdId of the action
Format TextFormatted text to display with action
Not Found TextFormatted text to display if the action is not found
Sprite TintAllow the icon to be colored by TextMeshPro

Note: {action:ActionName} is replaced in the 'Formatted Text' with icon associated with the action.

Public Methods#

Declaration#

Example
public void SetFormatText(string value)

Parameters#

NameDescription
valueNew formatted text to assign

Description#

Updates the Format Text on the component and refreshes the UI.