Skip to main content

TMP Action

The TMP Action component can be added to a TextMeshPro UI object to supply an action with text.

"Image Action"

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} 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.