Table of Contents

Class AnimationPlayerExtensions

Namespace
Squiggles.Core.Extension
Assembly
SquigglesCommon4X.dll

SC4X Extension for AnimationPlayer

public static class AnimationPlayerExtensions
Inheritance
AnimationPlayerExtensions
Inherited Members

Methods

WaitForAnimChange(AnimationPlayer)

Returns a signal awaiter for the animation player

public static SignalAwaiter WaitForAnimChange(this AnimationPlayer anim)

Parameters

anim AnimationPlayer

Returns

SignalAwaiter

a signal awaiter for "animation_changed"

WaitForAnimStart(AnimationPlayer)

returns a signal awaiter for when a new animation starts.

public static SignalAwaiter WaitForAnimStart(this AnimationPlayer anim)

Parameters

anim AnimationPlayer

Returns

SignalAwaiter

a signal awaiter for "animation_started

WaitForCurrentAnimEnd(AnimationPlayer)

Returns a "SignalAwaiter" for the animation player that awaits until the "animation_finished" signal is emitted. Useful because I always forget the exact name of the signals so this exists. Await the SignalAwaited returned in an async method to do some operation once the animation player has completed.

public static SignalAwaiter WaitForCurrentAnimEnd(this AnimationPlayer anim)

Parameters

anim AnimationPlayer

the AnimationPlayer instance this is called on

Returns

SignalAwaiter

A SignalAwaiter for "animation_finished"