 | AnimationExtensionsWhilePlaying Method (Animation) |
Keeps yielding while the animation is playing.
Namespace: Slash.Unity.Common.AnimationsAssembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntaxpublic static IEnumerator WhilePlaying(
this Animation animation
)
<ExtensionAttribute>
Public Shared Function WhilePlaying (
animation As Animation
) As IEnumerator
public:
[ExtensionAttribute]
static IEnumerator^ WhilePlaying(
Animation^ animation
)
[<ExtensionAttribute>]
static member WhilePlaying :
animation : Animation -> IEnumerator
Parameters
- animation
- Type: Animation
Animation to check.
Return Value
Type:
IEnumeratorEnumerator that keeps yielding while the animation is playing.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Animation. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also