Keyframed Movement Not Playing on Runtime-Spawned Entities via Verse

Summary

Entities spawned at runtime via Verse using AddEntities do not play animations defined in their keyframed_movement_component, even though all components and keyframes are correctly set and Play() is called. The same prefab plays the animation correctly when placed manually in the Outliner, suggesting a possible runtime limitation or bug in Scene Graph animation handling.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Verse

Steps to Reproduce

Create a prefab (SG.Test_Boneco) with the following components:

transform_component

keyframed_movement_component

Predefined keyframes with valid offset and duration values.

Spawn the entity at runtime using Verse by calling AddEntities.

Implement a polling mechanism to wait until all expected components are available.

Confirm via logging that:

The keyframed_movement_component is present.

Keyframes exist and have valid values.

Call SetKeyframes() followed by Play() on the movement component of the newly created entity.

Expected Result

The entity created at runtime should play the keyframed animation just like the same prefab does when placed directly in the Outliner before the session starts.

Observed Result

The entity spawns correctly in the scene with all expected components active and valid. However, it remains completely static—no animation is played, even though logs confirm that SetKeyframes() and Play() were called successfully and that the keyframes are properly assigned.

Platform(s)

Computer