ControlWidgetclass
A control widget is used to edit the value of a single SerializedProperty.
Constructors1
Showing 1 constructors
public ControlWidget(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
No results match this filter.
Methods19
Showing 19 methods
public static Editor.ControlWidget Create(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
public virtual void FromClipboardString(string clipboard)
| Parameter | Type | Description |
|---|---|---|
| clipboard | string | — |
void—protected virtual void OnContextMenu(Editor.ContextMenuEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | ContextMenuEvent | — |
void—public virtual void OnLabelContextMenu(Editor.ContextMenu menu)
Called when right clicking a label in a ControlSheet for this widget. This allows you to add advanced menu items for this widget at the top of the menu, before the default ones.
| Parameter | Type | Description |
|---|---|---|
| menu | ContextMenu | — |
void—protected virtual void OnMultipleDifferentValues(bool state)
| Parameter | Type | Description |
|---|---|---|
| state | bool | — |
void—protected virtual void OnPaint()
void—protected virtual void OnValueChanged()
void—protected virtual void PaintControl()
void—protected virtual void PaintOver()
void—protected virtual void PaintUnder()
void—public void Prime()
Should get called right after creation
void—protected void PropertyFinishEdit()
void—protected void PropertyStartEdit()
void—public virtual void StartEditing()
Selects this widget and starts editing. Used when we want to focus on the widget in the inspector, like when double-clicking on something in a graph editor that maps to this widget.
void—public virtual void Think()
void—public virtual string ToClipboardString()
string—public static Editor.ControlWidget TryCreateGenericObjectControlWidget(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
No results match this filter.
Properties11
Showing 11 properties
public virtual Sandbox.TextFlag Editor.ControlWidget.CellAlignment { get; set; }
If none, when in a grid, the control will fill the entire cell
public virtual bool Editor.ControlWidget.IncludeLabel { get; set; }
If true (default) we'll include a label next to the control
bool—public virtual bool Editor.ControlWidget.IsControlActive { get; set; }
bool—public virtual bool Editor.ControlWidget.IsControlButton { get; set; }
bool—public virtual bool Editor.ControlWidget.IsControlDisabled { get; set; }
bool—public virtual bool Editor.ControlWidget.IsControlHovered { get; set; }
bool—public virtual bool Editor.ControlWidget.IsWideMode { get; set; }
If true we prefer to be full inspector width with the label above us
bool—public Sandbox.SerializedProperty Editor.ControlWidget.SerializedProperty { get; set; }
public virtual bool Editor.ControlWidget.SupportsMultiEdit { get; set; }
bool—public Color Editor.ControlWidget.Tint { get; set; }
protected virtual int Editor.ControlWidget.ValueHash { get; set; }
int—No results match this filter.