RaptorSuiteControls.DrawerEase
The Suite drawer slide easing, for modules that animate a drawer's width.
| Namespace | Assembly | Kind | Stability |
|---|---|---|---|
Raptor.EditorTools | Raptor.Editor | class | preview, since 0.1.0 |
public static class DrawerEaseFields
ResizeMargin
public const float ResizeMargin;The minimum space a resized drawer leaves for the views, in points.
Methods
Amount
public static float Amount(float from, float to, double start, double now)Returns the amount at now of a slide from from to to that started at start. Times are EditorApplication.timeSinceStartup seconds. Opening eases out and closing eases in.
| Parameter | Type | Description |
|---|---|---|
from | float | The amount the slide starts from. |
to | float | The amount the slide ends at. |
start | double | The slide's start, editor time in seconds. |
now | double | The current editor time, in seconds. |
Returns: The eased amount.
Finished
public static bool Finished(float from, float to, double start, double now)Whether the slide has run its full duration.
| Parameter | Type | Description |
|---|---|---|
from | float | The amount the slide starts from. |
to | float | The amount the slide ends at. |
start | double | The slide's start, editor time in seconds. |
now | double | The current editor time, in seconds. |
Returns: True when the slide is complete.
Related types
- RaptorSuiteControls: Suite-style controls for tools in other assemblies, such as RAPTOR Render's Ray-traced preview settings.