# Set Unit Command Button Tooltip

Grammar — Set unit’s key tooltip text to text
FlagsNative | Action | Internal

Sets the info text for the specified unit.

# Arguments

  • unit — Unit
  • string — Modification Key
  • text — Text

Returns — void

native void UnitSetInfoButtonTooltip(
	unit inUnit,
	string key,
	text inText,
);

Category: Unit / Properties

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L5412
UnitSetInfoButtonTooltip(lp_unit, ((AbilityCommandGetAbility(lp_key)) + "," + IntToString(AbilityCommandGetCommand(lp_key))), lp_text)
// L5418
UnitSetInfoButtonTooltip(lp_unit, (lp_key), lp_text)
// L5424
UnitSetInfoButtonTooltip(lp_item, "@", lp_text)