Back to API Reference
Class
TextCommandSource
abstract
What a field's Commands list holds: a contributor of entries to the text context menu. A TextCommand contributes one entry; SystemTextActions the platform's own actions. Derive from TextCommand for a command of your own.
Derived Types(3)
Types that inherit from TextCommandSource.
CCC
ProjectCommands
Stands for the project's commands ([[Commands]], Project Settings → LightSide → UniText) at its place in a field's list, so one change there reaches every field that lists it.
SystemTextActions
The platform's own actions on the selected text, at its place in a field's list. On Android they are the apps that act on selected text, such as Translate — one entry per app, labeled with the app's own name, in the system menu and the Unity-UI menu alike. On iOS 16 and later they are the system's own text actions — Look Up, Translate, Share and whatever else the system offers — which the system menu alone presents and runs. Contributes while the selection may be copied.
TextCommand
A command of the text context menu: its label, when it applies, and what it does to the field that presents it. The field lists its commands in [[Commands]]; the system menu shows the applicable ones in that order, and the Unity-UI menu shows each on the item bound to it. Derive from it and implement [[Execute]] for a command of your own.
