Class ExportToolButtonAttribute
- Namespace
- Godot
- Assembly
- GodotSharp.dll
Exports the annotated Callable as a clickable button.
[AttributeUsage(AttributeTargets.Property)]
public sealed class ExportToolButtonAttribute : Attribute
- Inheritance
-
ExportToolButtonAttribute
- Inherited Members
Constructors
ExportToolButtonAttribute(string)
Exports the annotated Callable as a clickable button.
public ExportToolButtonAttribute(string text)
Parameters
text
stringThe label of the button.
Properties
Icon
If defined, used to fetch an icon for the button via GetThemeIcon(StringName, StringName), from the
EditorIcons
theme type.
public string? Icon { get; init; }
Property Value
Text
The label of the button.
public string Text { get; }