Table of Contents

Class CommonExtensions

public static class CommonExtensions
Inheritance
CommonExtensions
Inherited Members

Methods

Build(IEnumerable<IAbstractAnimationBuilder>)

public static IEnumerable<AbstractAnimation> Build(this IEnumerable<IAbstractAnimationBuilder> animationsBuilders)

Parameters

animationsBuilders IEnumerable<IAbstractAnimationBuilder>

Returns

IEnumerable<AbstractAnimation>

Debug(Echo, string)

Applies a DebugMotion to the echo.

public static Echo Debug(this Echo echo, string name = null)

Parameters

echo Echo
name string

If name is null, it will use the echo's name. Make you it's set.

Returns

Echo

Debug(Tween, string)

Applies a DebugMotion to the tween.

public static Tween Debug(this Tween tween, string name = null)

Parameters

tween Tween
name string

If name is null, it will use the tween's name. Make you it's set.

Returns

Tween

Echo<TItem>(TItem, EchoOptions)

Creates a Echo and a EchoMotionProxy<TItem> for the item with the selected options.

public static EchoMotionProxy<TItem> Echo<TItem>(this TItem item, EchoOptions options)

Parameters

item TItem
options EchoOptions

Returns

EchoMotionProxy<TItem>

Type Parameters

TItem

Echo<TItem>(TItem, float?, bool)

Creates a Echo and a EchoMotionProxy<TItem> for the item with the selected params.

public static EchoMotionProxy<TItem> Echo<TItem>(this TItem item, float? timeout = null, bool autoStart = false)

Parameters

item TItem
timeout float?
autoStart bool

Returns

EchoMotionProxy<TItem>

Type Parameters

TItem

Pause(IEnumerable<AbstractAnimation>)

public static IEnumerable<AbstractAnimation> Pause(this IEnumerable<AbstractAnimation> animations)

Parameters

animations IEnumerable<AbstractAnimation>

Returns

IEnumerable<AbstractAnimation>

Reset(IEnumerable<AbstractAnimation>)

public static IEnumerable<AbstractAnimation> Reset(this IEnumerable<AbstractAnimation> animations)

Parameters

animations IEnumerable<AbstractAnimation>

Returns

IEnumerable<AbstractAnimation>

Restart<TAnimation>(TAnimation)

Restarts the animation by calling Stop(bool), Reset(), Start() in this order.

public static TAnimation Restart<TAnimation>(this TAnimation animation) where TAnimation : AbstractAnimation

Parameters

animation TAnimation

Returns

TAnimation

Type Parameters

TAnimation

Resume(IEnumerable<AbstractAnimation>)

public static IEnumerable<AbstractAnimation> Resume(this IEnumerable<AbstractAnimation> animations)

Parameters

animations IEnumerable<AbstractAnimation>

Returns

IEnumerable<AbstractAnimation>

Start(IEnumerable<AbstractAnimation>)

public static IEnumerable<AbstractAnimation> Start(this IEnumerable<AbstractAnimation> animations)

Parameters

animations IEnumerable<AbstractAnimation>

Returns

IEnumerable<AbstractAnimation>

StartAsync(IEnumerable<AbstractAnimation>)

public static Task<IEnumerable<AbstractAnimation>> StartAsync(this IEnumerable<AbstractAnimation> animations)

Parameters

animations IEnumerable<AbstractAnimation>

Returns

Task<IEnumerable<AbstractAnimation>>

Stop(IEnumerable<AbstractAnimation>, bool)

public static IEnumerable<AbstractAnimation> Stop(this IEnumerable<AbstractAnimation> animations, bool triggerOnCompleted = false)

Parameters

animations IEnumerable<AbstractAnimation>
triggerOnCompleted bool

Returns

IEnumerable<AbstractAnimation>

Tween<TItem>(TItem, TweenOptions)

Creates a Tween and a TweenMotionProxy<TItem> for the item with the selected options.

public static TweenMotionProxy<TItem> Tween<TItem>(this TItem item, TweenOptions options)

Parameters

item TItem
options TweenOptions

Returns

TweenMotionProxy<TItem>

Type Parameters

TItem

Tween<TItem>(TItem, float, bool)

Creates a Tween and a TweenMotionProxy<TItem> for the item with the selected params.

public static TweenMotionProxy<TItem> Tween<TItem>(this TItem item, float time = 1, bool autoStart = false)

Parameters

item TItem
time float
autoStart bool

Returns

TweenMotionProxy<TItem>

Type Parameters

TItem