Urho.AnimationState Class

Animation instance.

See Also: AnimationState

Syntax

public class AnimationState : RefCounted

Requirements

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

The members of Urho.AnimationState are listed below.

See Also: RefCounted

Public Constructors

Constructs a new instance of Urho.AnimationState, given a raw pointer to an unmanaged object

Protected Constructors

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

Public Properties

[read-only]
AnimationAnimation. Return animation.
BlendModeAnimationBlendMode. Return blending mode. Or Set blending mode.
[read-only]
EnabledBoolean. Return whether weight is nonzero.
LayerByte. Return blending layer. Or Set blending layer.
[read-only]
LengthSingle. Return animation length.
LoopedBoolean. Determines whether the animation looped.
[read-only]
ModelAnimatedModel. Return animated model this state belongs to (model mode.)
[read-only]
NodeNode. Return root scene node this state controls (node hierarchy mode.)
StartBoneBone*. Return start bone. Or Set start bone. Not supported in node animation mode. Resets any assigned per-bone weights.
TimeSingle. Return time position. Or Set time position. Does not fire animation triggers.
WeightSingle. Return blending weight. Or Set blending weight.

Public Methods

AddTime(Single)
Modify time position. %Animation triggers will be fired.
AddWeight(Single)
Modify blending weight.
Apply()
Apply the animation at the current time position.
GetBoneWeight(String) : Single
Return per-bone blending weight by name.
GetBoneWeight(UInt32) : Single
Return per-bone blending weight by track index.
GetBoneWeight(StringHash) : Single
Return per-bone blending weight by name.
GetTrackIndex(String) : UInt32
Return track index by bone name, or M_MAX_UNSIGNED if not found.
GetTrackIndex(Node) : UInt32
Return track index with matching bone node, or M_MAX_UNSIGNED if not found.
GetTrackIndex(StringHash) : UInt32
Return track index by bone name hash, or M_MAX_UNSIGNED if not found.
SetBoneWeight(String, Single, Boolean)
Set per-bone blending weight by name.
SetBoneWeight(UInt32, Single, Boolean)
Set per-bone blending weight by track index. Default is 1.0 (full), is multiplied with the state's blending weight when applying the animation. Optionally recurses to child bones.
SetBoneWeight(StringHash, Single, Boolean)
Set per-bone blending weight by name hash.