ButtonAttributeclass

When added to a method - the inspector will show a button for it.

objectAttributeButtonAttribute
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public class Sandbox.ButtonAttribute : System.Attribute

Constructors1

Showing 1 constructors

public ButtonAttribute(string value, string icon)PUBLICCONSTRUCTOR

ParameterTypeDescription
valuestring
iconstring

Properties2

Showing 2 properties

public string Sandbox.ButtonAttribute.Icon { get; set; }PUBLICGETSET

Returns:string

On this page