Get RAPTOR

RaptorSuiteControls.DrawerEase

The Suite drawer slide easing, for modules that animate a drawer's width.

NamespaceAssemblyKindStability
Raptor.EditorToolsRaptor.Editorclasspreview, since 0.1.0
public static class DrawerEase

Fields

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.

ParameterTypeDescription
fromfloatThe amount the slide starts from.
tofloatThe amount the slide ends at.
startdoubleThe slide's start, editor time in seconds.
nowdoubleThe 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.

ParameterTypeDescription
fromfloatThe amount the slide starts from.
tofloatThe amount the slide ends at.
startdoubleThe slide's start, editor time in seconds.
nowdoubleThe current editor time, in seconds.

Returns: True when the slide is complete.

  • RaptorSuiteControls: Suite-style controls for tools in other assemblies, such as RAPTOR Render's Ray-traced preview settings.