Class ButtonAttribute
Displays the method in the properties panel where user can click and invoke this method.
Inheritance
System.Object
ButtonAttribute
Namespace: FlaxEngine
Assembly: FlaxEngine.CSharp.dll
Syntax
public sealed class ButtonAttribute : Attribute
Remarks
Supported on both static and member methods that are parameterless.
Constructors
ButtonAttribute()
ButtonAttribute(String, String)
Initializes a new instance of the ButtonAttribute class.
Declaration
public ButtonAttribute(string text, string tooltip = null)
Parameters
System.String
text
The button text. |
System.String
tooltip
The button tooltip. |
Fields
Text
The button text. Empty value will use method name (auto-formatted).
Declaration
public string Text
Field Value
System.String
|
Tooltip
The button tooltip text. Empty value will use method documentation.
Declaration
public string Tooltip
Field Value
System.String
|