Color legend plain property
The base of the three actions: a named callback, with what a settings menu shows it with.
An abstract class, in the namespace BorrowedTorch.InputBinding.Types.Actions.Base. ButtonAction, OneAxisAction and TwoAxesAction derive from it, and they are the only ones: the binder calls actions through an internal method, so a class outside the library can’t derive from it. An action is one object: two actions with the same name are still two actions, and a binder registers one name once. The actions page shows it in context, with code.
Names are colored by what they are: a property.
Properties
Description →
string · Init-only. Text for the settings menu, or a key into the game’s translations. null by default. The binder never reads it.
Name →
string · Read-only. The action’s name, never null or empty: its key in a binder. Keep it the same from version to version, since saved bindings are best stored under it.
Representation →
object · Init-only. Anything the game shows the action with, such as an icon. null by default. The binder never reads it.