Skip to main content

TMP Action Plus

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

"Image Action"

Component Fields#

NameDescription
Player IdId of the Player to get action for
Update TypeUpdate method used for this component
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
public void SetFormatText(string value)

Parameters

NameDescription
valueNew formatted text to assign

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