Class CurveField
Makes a field for editing an
Inherited Members
Namespace: UnityEditor.UIElements
Syntax
public class CurveField : BaseField<AnimationCurve>, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle, IBindable, INotifyValueChanged<AnimationCurve>, IMixedValueSupport
Constructors
CurveField()
Initializes and returns an instance of CurveField.
Declaration
public CurveField()
CurveField(String)
Initializes and returns an instance of CurveField.
Declaration
public CurveField(string label)
Parameters
Type | Name | Description |
---|---|---|
String | label | The text to use as a label. |
Fields
borderUssClassName
USS class name of border elements in elements of this type.
Declaration
public static readonly string borderUssClassName
Field Value
Type | Description |
---|---|
String |
contentUssClassName
USS class name of content elements in elements of this type.
Declaration
public static readonly string contentUssClassName
Field Value
Type | Description |
---|---|
String |
inputUssClassName
USS class name of input elements in elements of this type.
Declaration
public static readonly string inputUssClassName
Field Value
Type | Description |
---|---|
String |
labelUssClassName
USS class name of labels in elements of this type.
Declaration
public static readonly string labelUssClassName
Field Value
Type | Description |
---|---|
String |
ussClassName
USS class name of elements of this type.
Declaration
public static readonly string ussClassName
Field Value
Type | Description |
---|---|
String |
Properties
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.
Declaration
public Rect ranges { get; set; }
Property Value
Type | Description |
---|---|
Rect |
renderMode
The RenderMode of CurveField. The default is RenderMode.Default.
Declaration
public CurveField.RenderMode renderMode { get; set; }
Property Value
Type | Description |
---|---|
CurveField.RenderMode |
value
Declaration
public override AnimationCurve value { get; set; }
Property Value
Type | Description |
---|---|
AnimationCurve |
Overrides
UnityEngine.UIElements.BaseField<AnimationCurve>.value
Methods
ExecuteDefaultAction(EventBase)
Declaration
protected override void ExecuteDefaultAction(EventBase evt)
Parameters
Type | Name | Description |
---|---|---|
EventBase | evt |
Overrides
UnityEngine.UIElements.BaseField<AnimationCurve>.ExecuteDefaultAction(UnityEngine.UIElements.EventBase)
SetValueWithoutNotify(AnimationCurve)
Declaration
public override void SetValueWithoutNotify(AnimationCurve newValue)
Parameters
Type | Name | Description |
---|---|---|
AnimationCurve | newValue |
Overrides
UnityEngine.UIElements.BaseField<AnimationCurve>.SetValueWithoutNotify(AnimationCurve)
UpdateMixedValueContent()
Declaration
protected override void UpdateMixedValueContent()
Overrides
UnityEngine.UIElements.BaseField<AnimationCurve>.UpdateMixedValueContent()