CurveField
Makes a field for editing an AnimationCurve. For more information, refer to UXML element CurveField.
Read time 8 minutesLast updated 10 days ago
Definition
- Type: Class
- Namespace: UnityEditor.UIElements
- Assembly: UnityEditor.CoreModule
- Inherits from: BaseField<AnimationCurve>
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<AnimationCurve>, IMixedValueSupport
[Icon("UIToolkit/Icons/CurveField.png")]public class CurveField : BaseField<AnimationCurve>, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, INotifyValueChanged<AnimationCurve>, IMixedValueSupport
Static Fields
Value | Description |
|---|---|
| contentUssClassName | USS class name of content elements in elements of this type. |
| inputUssClassName | USS class name of input elements in elements of this type. |
| labelUssClassName | USS class name of labels in elements of this type. |
| ussClassName | USS class name of elements of this type. |
Constructors
Constructor | Description |
|---|---|
| CurveField() | Initializes and returns an instance of CurveField. |
| CurveField(System.String) | Initializes and returns an instance of CurveField. |
Properties
Property | Description |
|---|---|
| ranges | Optional rectangle that the curve is restrained within. If the range width or height is < 0 then CurveField computes an automatic range, which encompasses the whole curve. |
| renderMode | The RenderMode of CurveField. The default is RenderMode.Default. |
Enums
Enum | Description |
|---|---|
| CurveField.RenderMode | Render mode of CurveFields |