Api Editor FloatControlWidget
class

FloatControlWidget

public class FloatControlWidget : StringControlWidget

Constructors

FloatControlWidget(SerializedProperty property)

Properties

Name Type Description
HighlightColor Color
Icon String
Label String
SliderPaint Action<Rect, Single>
HasRange Boolean If true we can draw a slider
Range Vector2 The range, min and max
RangeStep Single The step size between range
RangeClamped Boolean True if the range is clamped between min and max

Methods

Void MakeRanged(Vector2 range, Single step, Boolean clamped, Boolean slider)
Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.FloatControlWidget