Register bevy_animation::PlayingAnimation#9023
Register bevy_animation::PlayingAnimation#9023james7132 merged 1 commit intobevyengine:mainfrom 525c1e21-bd67-4735-ac99-b4b0e5262290:register-playing-animation
Conversation
nicopap
left a comment
There was a problem hiding this comment.
Is this meaningful in any way? Given that PlayingAnimation contains (1) Entity, shouldn't it also reflect MapEntities as well? Also (2) it contains a Handle<T> which I think need special handling as well?
|
I believe you might be viewing these changes as something that improves persistence/loading/saving but that is not exactly the intended effect of this change. If you're wondering how this is useful: This allows you to build tooling, such as inspectors/editors, that display or otherwise utilise the currently playing animation, including its elapsed time, speed, whether it's repeating, etc.
I have mostly used the example use case of editor/inspector here but the same can be said for scripting. |
Objective
bevy_animation::PlayingAnimationderivesReflectbut is not registered.Solution
Register
bevy_animation::PlayingAnimation.