Docsv3.20.2
Back to API Reference
Interface

ICommandTitle

abstract

Where the title of a TextCommand comes from: a fixed text (FixedCommandTitle), an entry of a Unity Localization string table, or a source of your own — implement it to take titles from your localization system.

Implementations(1)

Types that implement ICommandTitle.

public string Text{ get }

The title in the current language; or empty shows the command's default title.

public Action Changed

Raised on the main thread when Text changes — after an edit, or on a language switch — so a menu showing the title presents it again. An implementation raises it for every such change.