SuperBehaviour SuperBehaviour
SuperBehaviour SuperBehaviour
v0.1.2 [Beta]

Search Results for

    Class ButtonAttribute

    Namespace
    LoM.Super
    Assembly
    LoM.Super.dll

    Attribute to specify a inspector Button before or after a field, property or method.

    [AttributeUsage(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, Inherited = true, AllowMultiple = true)]
    public class ButtonAttribute : Attribute
    Inheritance
    object
    Attribute
    ButtonAttribute

    Constructors

    ButtonAttribute(string, bool)

    public ButtonAttribute(string text = null, bool displayAfter = false)

    Parameters

    text string
    displayAfter bool

    ButtonAttribute(string, string, bool)

    Specify a inspector Button before or after a field or property

    public ButtonAttribute(string text, string methodName, bool displayAfter = false)

    Parameters

    text string

    Text to be displayed on the button

    methodName string

    Name of the method to be called when the button is clicked

    displayAfter bool

    Whether the button should be displayed after the field or property

    Properties

    DisplayAfter

    public bool DisplayAfter { get; }

    Property Value

    bool

    IsMethod

    public bool IsMethod { get; }

    Property Value

    bool

    MethodName

    public string MethodName { get; }

    Property Value

    string

    Text

    public string Text { get; }

    Property Value

    string
    © Lords of Mahlstrom Gaming, all rights reserved.