PLUGIN SDK / Registration options / CommandOptions
CommandOptions
A command (command palette, Tools > Plugins menu, optional toolbar button and shortcut).
Kindrecord
NamespaceKroys.Plugins
Members10
Source
Options.csDECLARATION
Declaration
Namespace Kroys.Plugins, assembly KroysPlugins.Sdk.dll.
Declaration
public sealed record CommandOptions(string Id, string Label)
REFERENCE
Members
Constructors
#public CommandOptions(string Id, string Label)A command (command palette, Tools > Plugins menu, optional toolbar button and shortcut).
- Id
- Local id; the editor command id is "<plugin id>.<Id>".
- Label
- Menu and palette label.
Properties
#public string Id { get; init; }Local id; the editor command id is "<plugin id>.<Id>".
#public string Label { get; init; }Menu and palette label.
#public string? Category { get; init; }Palette group (null: the plugin name).
#public string? Description { get; init; }Palette description.
#public string? Keywords { get; init; }Extra search words.
#public string? Icon { get; init; }Lucide icon name ("plug", "play", "folder" ...).
#public bool Toolbar { get; init; }Also a button on the plugin toolbar of the viewport.
#public string? Shortcut { get; init; }Shortcut such as "Ctrl+Shift+H" (Scene context).
Signatures
public CommandOptions(string Id, string Label) public string Id { get; init; } public string Label { get; init; } public string? Category { get; init; } public string? Description { get; init; } public string? Keywords { get; init; } public string? Menu { get; init; } public string? Icon { get; init; } public bool Toolbar { get; init; } public string? Shortcut { get; init; }
KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.