s&box docs
API ReferenceSandbox.Utility

public static abstract sealed class Sandbox.Utility.Easing

Easing functions used for transitions. See https://easings.net/ for examples.

Broader workflow and conceptual references connected to this API.

Methods

Showing 18 methods

public static float BounceIn(float f)

Bouncy ease in.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float BounceInOut(float f)

Bouncy ease in and out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float BounceOut(float f)

Bouncy ease out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float EaseIn(float f)

public static float EaseInOut(float f)

public static float EaseOut(float f)

public static float ExpoIn(float f)

Exponential ease in.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float ExpoInOut(float f)

Exponential ease in and out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float ExpoOut(float f)

Exponential ease out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static Sandbox.Utility.Easing.Function GetFunction(string name)

Get an easing function by name (ie, "ease-in"). If the function doesn't exist we return QuadraticInOut

public static float Linear(float f)

Linear easing function, x=y.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float QuadraticIn(float f)

Quadratic ease in.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float QuadraticInOut(float f)

Quadratic ease in and out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float QuadraticOut(float f)

Quadratic ease out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float SineEaseIn(float f)

Sine ease in.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float SineEaseInOut(float f)

Sine ease in and out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static float SineEaseOut(float f)

Sine ease out.

Parameters

  • f: Input in range of 0 to 1.

Returns

Output in range 0 to 1.

public static bool TryGetFunction(string name, Sandbox.Utility.Easing.Function function)

Get an easing function by name (ie, "ease-in"). If the function exists we return true, otherwise return false.

Metadata

FieldValue
NamespaceSandbox.Utility
Typeclass
AssemblySandbox.System
Doc IDT:Sandbox.Utility.Easing

On this page