Urho.AnimationController Class

Component that drives an AnimatedModel's animations.

See Also: AnimationController

Syntax

public class AnimationController : Component

Requirements

Namespace: Urho
Assembly: Urho (in Urho.dll)
Assembly Versions: 1.0.0.0

The members of Urho.AnimationController are listed below.

See Also: Component

Public Constructors

Constructs a new instance of Urho.AnimationController which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.AnimationController, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.AnimationController linked to a specific Context.

Protected Constructors

Empty constructor, chain to this constructor when you provide your own constructor that sets the handle field.

Public Properties

[read-only]
override
TypeStringHash. Urho's type system type.
[read-only]
override
TypeNameString. Urho's low-level type name.
[read-only]
static
TypeNameStaticString. Urho's low-level type name, accessible as a static method.
[read-only]
static
TypeStaticStringHash. Urho's low-level type, accessible as a static method.

Public Methods

Fade(String, Single, Single) : Boolean
Fade animation to target weight. Return true on success.
FadeOthers(String, Single, Single) : Boolean
Fade other animations on the same layer to target weight. Return true on success.
GetAnimationState(String) : AnimationState
Find an animation state by animation name.
GetAnimationState(StringHash) : AnimationState
Find an animation state by animation name hash
GetAutoFade(String) : Single
Return animation autofade time.
GetBlendMode(String) : AnimationBlendMode
Return animation blending mode.
GetFadeTarget(String) : Single
Return animation fade target weight.
GetFadeTime(String) : Single
Return animation fade time.
GetLayer(String) : Byte
Return animation blending layer.
GetLength(String) : Single
Return animation length.
GetRemoveOnCompletion(String) : Boolean
Return whether animation auto-removes on completion, or false if no such animation.
GetSpeed(String) : Single
Return animation speed.
GetStartBone(String) : Bone*
Return animation start bone, or null if no such animation.
GetStartBoneName(String) : String
Return animation start bone name, or empty string if no such animation.
GetTime(String) : Single
Return animation time position.
GetWeight(String) : Single
Return animation weight.
IsAtEnd(String) : Boolean
Return whether an animation is at its end. Will return false if the animation is not active at all.
IsFadingIn(String) : Boolean
Return whether an animation is fading in.
IsFadingOut(String) : Boolean
Return whether an animation is fading out.
IsLooped(String) : Boolean
Return animation looping.
IsPlaying(Byte) : Boolean
Return whether an animation is active. Note that non-looping animations that are being clamped at the end also return true.
IsPlaying(String) : Boolean
Return whether an animation is active. Note that non-looping animations that are being clamped at the end also return true.
override
OnSetEnabled()
Handle enabled/disabled state change.
Play(String, Byte, Boolean, Single) : Boolean
Play an animation and set full target weight. Name must be the full resource name. Return true on success.
PlayExclusive(String, Byte, Boolean, Single) : Boolean
Play an animation, set full target weight and fade out all other animations on the same layer. Name must be the full resource name. Return true on success.
static
RegisterObject(Context)
Register object factory.
SetAutoFade(String, Single) : Boolean
Set animation autofade at end (non-looped animations only.) Zero time disables. Return true on success.
SetBlendMode(String, AnimationBlendMode) : Boolean
Set animation blending mode. Return true on success.
SetLayer(String, Byte) : Boolean
Set animation blending layer priority. Return true on success.
SetLooped(String, Boolean) : Boolean
Set animation looping. Return true on success.
SetRemoveOnCompletion(String, Boolean) : Boolean
Set whether an animation auto-removes on completion.
SetSpeed(String, Single) : Boolean
Set animation speed. Return true on success.
SetStartBone(String, String) : Boolean
Set animation start bone. Return true on success.
SetTime(String, Single) : Boolean
Set animation time position. Return true on success.
SetWeight(String, Single) : Boolean
Set animation weight. Return true on success.
Stop(String, Single) : Boolean
Stop an animation. Zero fadetime is instant. Return true on success.
StopAll(Single)
Stop all animations. Zero fadetime is instant.
StopLayer(Byte, Single)
Stop all animations on a specific layer. Zero fadetime is instant.
Update(Single)
Update the animations. Is called from HandleScenePostUpdate().