EditorToolbarSlider
A clickable slider used with EditorToolbarElementAttribute.
Read time 10 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor.Toolbars
- Assembly: UnityEditor
- Inherits from: Slider
- Implements: IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<float>, IValueField<float>
public class EditorToolbarSlider : Slider, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, ICustomStyle, IBindable, IMixedValueSupport, INotifyValueChanged<float>, IValueField<float>
Remarks
Click and drag to change the slider value, or double-click it to directly edit the float value. You can access additional functionalities in the right-click menu.
Static Fields
Value | Description |
|---|---|
| ussClassName | USS Class Name used to style the EditorToolbarSlider. |
Constructors
Constructor | Description |
|---|---|
| EditorToolbarSlider() | Constructor for the EditorToolbarSlider. |
| EditorToolbarSlider(System.String,System.Single,System.Single) | Constructor for the EditorToolbarSlider. |
| EditorToolbarSlider(System.String,UnityEngine.Texture2D,System.Single,System.Single) | Constructor for the EditorToolbarSlider. |
| EditorToolbarSlider(UnityEngine.Texture2D,System.Single,System.Single) | Constructor for the EditorToolbarSlider. |
Properties
Methods
Method | Description |
|---|---|
| SetValueWithoutNotify | Allow to set a value without being notified of the change, if any. |