Urho.AnimatedModel Class

Animated model component.

See Also: AnimatedModel

Syntax

public class AnimatedModel : StaticModel

Requirements

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

The members of Urho.AnimatedModel are listed below.

See Also: StaticModel

Public Constructors

Constructs a new instance of Urho.AnimatedModel which is tied to the Application.CurrentContext.
Constructs a new instance of Urho.AnimatedModel, given a raw pointer to an unmanaged object
Constructs a new instance of Urho.AnimatedModel 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

AnimationLodBiasSingle. Return animation LOD bias. Or Set animation LOD bias.
[read-only]
AnimationStatesIReadOnlyList<AnimationState>. Return all animation states.
[read-only]
MasterBoolean. Return whether is the master (first) animated model.
[read-only]
override
ModelAttrResourceRef. Return model attribute.
[read-only]
MorphVertexBuffersIReadOnlyList<VertexBuffer>. Return all morph vertex buffers.
[read-only]
NumAnimationStatesUInt32. Return number of animation states.
[read-only]
NumMorphsUInt32. Return number of vertex morphs.
[read-only]
SkeletonSkeleton.
[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.
[read-only]
override
UpdateGeometryTypeUpdateGeometryType. Return whether a geometry update is necessary, and if it can happen in a worker thread.
UpdateInvisibleBoolean. Return whether to update animation when not visible. Or Set whether to update animation and the bounding box when not visible. Recommended to enable for physically controlled models like ragdolls.

Public Methods

AddAnimationState(Animation) : AnimationState
Add an animation.
override
ApplyAttributes()
Apply attribute changes that can not be applied immediately. Called after scene load or a network update.
override
DrawDebugGeometry(DebugRenderer, Boolean)
Visualize the component as debug geometry.
GetAnimationState(String) : AnimationState
Return animation state by animation name.
GetAnimationState(UInt32) : AnimationState
Return animation state by index.
GetAnimationState(Animation) : AnimationState
Return animation state by animation pointer.
GetAnimationState(StringHash) : AnimationState
Return animation state by animation name hash.
GetMorphWeight(String) : Single
Return vertex morph weight by name.
GetMorphWeight(UInt32) : Single
Return vertex morph weight by index.
GetMorphWeight(StringHash) : Single
Return vertex morph weight by name hash.
override
Load(File, Boolean) : Boolean
override
Load(MemoryBuffer, Boolean) : Boolean
override
LoadXml(XmlElement, Boolean) : Boolean
static
RegisterObject(Context)
Register object factory. Drawable must be registered first.
RemoveAllAnimationStates()
Remove all animations.
RemoveAnimationState(String)
Remove an animation by animation name.
RemoveAnimationState(UInt32)
Remove an animation by index.
RemoveAnimationState(Animation)
Remove an animation by animation pointer.
RemoveAnimationState(AnimationState)
Remove an animation by AnimationState pointer.
RemoveAnimationState(StringHash)
Remove an animation by animation name hash.
ResetMorphWeights()
Reset all vertex morphs to zero.
SetModel(Model, Boolean)
Set model.
SetMorphWeight(String, Single)
Set vertex morph weight by name.
SetMorphWeight(UInt32, Single)
Set vertex morph weight by index.
SetMorphWeight(StringHash, Single)
Set vertex morph weight by name hash.
UpdateBoneBoundingBox()
Recalculates the bone bounding box.