class
GUICurvesField
A composite GUI object representing an editor field.
Editor fields are a combination of a label and an input field. Label is optional. This specific implementation displays an animation curve or a range between two animation curves.
Public
Constructors
GUICurvesField
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
SetCurve
Sets an animation curve to display on the field.
SetCurveRange
Sets a set of animation curves and displays the difference (range) between them.
GetCurve
Returns the curve represented by the field.
If the field represents a curve range this returns the minimal curve of that range.
GetMinCurve
Returns the minimal curve represented by the field containing a curve range.
Returns the only available curve if the field doesn't represent a range.
GetMaxCurve
Returns the maximal curve represented by the field containing a curve range.
Returns the only available curve if the field doesn't represent a range.
SetRange
Changes the visible range that the GUI element displays.
SetOffset
Returns the offset at which the displayed timeline values start at.
- offset
- Value to start the timeline values at, where x = time, y = value.
CenterAndZoom
Centers and zooms the view to fully display the provided set of curves.
SetPadding
staticCreate
Creates a new GUI editor field with a label.
- drawOptions
- Options that control which additional curve elements to draw.
- labelContent
- Content to display in the editor field label.
- labelWidth
- Width of the label in pixels.
- style
- Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on. If not specified default style is used.
staticCreate
Creates a new GUI editor field with a label.
- drawOptions
- Options that control which additional curve elements to draw.
- labelText
- String to display in the editor field label.
- labelWidth
- Width of the label in pixels.
- style
- Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on. If not specified default style is used.
staticCreate
Creates a new GUI editor field without a label.
- drawOptions
- Options that control which additional curve elements to draw.
- style
- Optional style to use for the element. Style will be retrieved from GUISkin of the GUIWidget the element is used on. If not specified default style is used.
Fields
Internal
Methods
CalculateUnconstrainedOptimalSize
Calculates the optimal size for the GUI element, ignoring size constraints.
Protected
Methods
Clicked
Triggered when the child color input field is clicked on.