public class Sandbox.UI.Button : Sandbox.UI.Panel
Related Guides
Broader workflow and conceptual references connected to this API.
When creating your own Classes/Structs/Assets/ect, you'll sometimes want custom editors that pair with them. For example, a Gradient Editor so you can visually see what the Gradient looks like instead of editing the Gradient as if it were a Struct with a list of Colours.
You can create your own editor tool to help you create your game. Your tool needs to be created in an editor project.
Editor UI is built entirely out of Widgets. Widgets are different from Panels, which are used for in-game UI. Widgets can be various elements or components, such as labels, buttons, text boxes, trees, or images.
You can broadcast and listen to events in your scene using interfaces.
Input is accessed using the… Input class!
Razor Component allow you to define some content to show inside another razor file. This makes it easy to create Panels that are more agile and reusable.
Constructors
Showing 5 constructors
No results match this filter.
Methods
Showing 12 methods
protected virtual int BuildHash()
protected virtual void BuildRenderTree(Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder tree)
public void Click()
public void DeleteIcon()
public void DeleteText()
protected virtual string GetRenderTreeChecksum()
protected virtual void OnMouseDown(Sandbox.UI.MousePanelEvent e)
public virtual void SetContent(string value)
public virtual void SetProperty(string name, string value)
public virtual void SetText(string text)
public virtual void Tick()
protected void UpdateActiveState()
No results match this filter.
Properties
Showing 8 properties
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Base Library |
| Doc ID | T:Sandbox.UI.Button |