API ReferenceEditor
FloatControlWidgetclass
Constructors1
Showing 1 constructors
public FloatControlWidget(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
No results match this filter.
Methods13
Showing 13 methods
protected virtual void DoLayout()
Returns:
void—public void MakeRanged(Vector2 range, float step, bool clamped, bool slider)
| Parameter | Type | Description |
|---|---|---|
| range | Vector2 | — |
| step | float | — |
| clamped | bool | — |
| slider | bool | — |
Returns:
void—protected virtual void OnDragValue(decimal add)
| Parameter | Type | Description |
|---|---|---|
| add | decimal | — |
Returns:
void—protected virtual void OnKeyRelease(Editor.KeyEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEvent | — |
Returns:
void—protected virtual void OnMouseMove(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnMousePress(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnMouseReleased(Editor.MouseEvent e)
| Parameter | Type | Description |
|---|---|---|
| e | MouseEvent | — |
Returns:
void—protected virtual void OnValueChanged()
Returns:
void—protected virtual void PaintControl()
Returns:
void—protected virtual void PaintSlider(Sandbox.Rect rect, float pos)
| Parameter | Type | Description |
|---|---|---|
| rect | Rect | — |
| pos | float | — |
Returns:
void—protected virtual object StringToValue(string text)
| Parameter | Type | Description |
|---|---|---|
| text | string | — |
Returns:
object—protected virtual string ValueToString()
Returns:
string—No results match this filter.
Properties8
Showing 8 properties
public bool Editor.FloatControlWidget.HasRange { get; set; }
If true we can draw a slider
Returns:
bool—public Color Editor.FloatControlWidget.HighlightColor { get; set; }
public string Editor.FloatControlWidget.Icon { get; set; }
Returns:
string—public string Editor.FloatControlWidget.Label { get; set; }
Returns:
string—public Vector2 Editor.FloatControlWidget.Range { get; set; }
The range, min and max
public bool Editor.FloatControlWidget.RangeClamped { get; set; }
True if the range is clamped between min and max
Returns:
bool—public float Editor.FloatControlWidget.RangeStep { get; set; }
The step size between range
Returns:
float—public System.Action`2<Sandbox.Rect,float> Editor.FloatControlWidget.SliderPaint { get; set; }
No results match this filter.