Search Results for

    Show / Hide Table of Contents

    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()

    Initializes a new instance of the ButtonAttribute class.

    Declaration
    public 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

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat