release method

  1. @override
void release(
  1. Entity entity
)
override

entity's animator has gone — taken off, switched off, playing another graph: hand what it drove back to what was authored. What a target sets while it drives is runtime state only, never what a scene saves.

Implementation

@override
void release(Entity entity) =>
    entity.getComponent<AnimationPlayerComponent>()?.release(fade: 0);