Summary
[Editor-Only] Utility for a toggle which can show and hide a speed slider.
- Assembly
- Animancer
.dll - Namespace
- Animancer
.Editor - Base Types
-
- Object
- Derived Types
graph BT
Type-->Base0["Object"]
Type["ToggledSpeedSlider"]
class Type type-node
Derived0["TransitionLibrarySelectionPreviewSpeed"]-->Type
click Derived0 "/animancer/api/Animancer.Editor.TransitionLibraries/TransitionLibrarySelectionPreviewSpeed"
Derived1["AnimancerGraphSpeedSlider"]-->Type
click Derived1 "/animancer/api/Animancer.Editor/AnimancerGraphSpeedSlider"
Syntax
public class ToggledSpeedSlider
Constructors
Name | Summary |
---|---|
ToggledSpeedSlider |
Creates a new Animancer.Editor.ToggledSpeedSlider . |
Fields
Name | Constant Value | Summary |
---|---|---|
GUIContent |
The content displayed on the toggle.
|
|
IsOn |
Is the toggle currently on?
|
Properties
Name | Value | Summary |
---|---|---|
Speed | float |
The current speed value.
|
Methods
Name | Value | Summary |
---|---|---|
DoSpeedSlider |
float |
Draws a slider to control the
Animancer.Editor.ToggledSpeedSlider.Speed . |
DoToggleGUI |
bool |
Draws a toggle to show or hide the speed slider.
|
HandleResetClick |
void |
Handles Right or Middle Clicking in the `area` to reset the
Animancer.Editor.ToggledSpeedSlider.Speed . |
OnSetSpeed |
void |
Called when the
Animancer.Editor.ToggledSpeedSlider.Speed is changed. |