Api Editor IconButton
class

IconButton

public class IconButton : Widget

Constructors

IconButton(String icon, Action onClick, Widget parent)

Properties

Name Type Description
Icon String
OnClick Action
IconSize Single
Background Color
Foreground Color
BackgroundActive Color
ForegroundActive Color
IsToggle Boolean If true we will toggle IsActive automatically
IsActive Boolean If IsToggle is true, this is toggled on press
OnToggled Action<Boolean>
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.IconButton