ToggledSpeedSlider Class

Summary

[Editor-Only] Utility for a toggle which can show and hide a speed slider.
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(string) 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(Rect, GUIStyle) float
Draws a slider to control the Animancer.Editor.ToggledSpeedSlider.Speed.
DoToggleGUI(Rect, GUIStyle) bool
Draws a toggle to show or hide the speed slider.
HandleResetClick(Rect) void
Handles Right or Middle Clicking in the `area` to reset the Animancer.Editor.ToggledSpeedSlider.Speed.
OnSetSpeed(float) void
Called when the Animancer.Editor.ToggledSpeedSlider.Speed is changed.