Skip to content

AnimationEvaluationError::ComponentNotPresent should take a ComponentId #17776

Open
@anlumo

Description

@anlumo

Bevy version

0.15.2

What you did

I'm currently trying to implement animations for a scripting system. This system may have dynamic components that don't have a TypeId, only a ComponentId.

What went wrong

When returning the error bevy::animation::AnimationEvaluationError::ComponentNotPresent(_) from AnimationCurveEvaluator::commit, I have to supply a TypeId for a missing component, but that component might not have a TypeId, because it was created at runtime.

I think this should take a ComponentId instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AnimationMake things move and change over timeC-BugAn unexpected or incorrect behaviorS-Needs-DesignThis issue requires design work to think about how it would best be accomplished

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions