Class AnimationProcessor
- Namespace
- Stride.Animations
- Assembly
- Stride.Engine.dll
public class AnimationProcessor : EntityProcessor<AnimationComponent, AnimationProcessor.AssociatedData>- Inheritance
- 
      objectAnimationProcessor
- Inherited Members
Constructors
AnimationProcessor()
public AnimationProcessor()Methods
Draw(RenderContext)
Performs work related to this processor.
public override void Draw(RenderContext context)Parameters
- contextRenderContext
GenerateComponentData(Entity, AnimationComponent)
Generates associated data to the given entity.
protected override AnimationProcessor.AssociatedData GenerateComponentData(Entity entity, AnimationComponent component)Parameters
- entityEntity
- The entity. 
- componentAnimationComponent
Returns
- AnimationProcessor.AssociatedData
- The associated data. 
GetAnimationClipResult(AnimationComponent)
public AnimationClipResult GetAnimationClipResult(AnimationComponent animationComponent)Parameters
- animationComponentAnimationComponent
Returns
IsAssociatedDataValid(Entity, AnimationComponent, AssociatedData)
Checks if the current associated data is valid, or if readding the entity is required.
protected override bool IsAssociatedDataValid(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData associatedData)Parameters
- entityEntity
- The entity. 
- componentAnimationComponent
- associatedDataAnimationProcessor.AssociatedData
- The associated data. 
Returns
- bool
- True if the change in associated data requires the entity to be readded, false otherwise. 
OnEntityComponentAdding(Entity, AnimationComponent, AssociatedData)
Run when a matching entity is added to this entity processor.
protected override void OnEntityComponentAdding(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData data)Parameters
- entityEntity
- The entity. 
- componentAnimationComponent
- dataAnimationProcessor.AssociatedData
- The associated data. 
OnEntityComponentRemoved(Entity, AnimationComponent, AssociatedData)
Run when a matching entity is removed from this entity processor.
protected override void OnEntityComponentRemoved(Entity entity, AnimationComponent component, AnimationProcessor.AssociatedData data)Parameters
- entityEntity
- The entity. 
- componentAnimationComponent
- dataAnimationProcessor.AssociatedData
- The associated data.