Hi PlayCanvas Devs,
I want to copy (“clone”) an entity with attached spine character at runtime.
When I clone the entity in the “Initialize” method, the spine character is visible as intended.
But when I clone the entity after the “Initialize” method (E.g. on click or in postInitialize), the spine character is not visible.
Here is a sample project: https://playcanvas.com/project/659589/overview/cloning-spines
Observe: The first Hero is cloned successfully (in Initialize), but when you click, the cloned entities don’t render their Spine components.
In addition, it throws the following warning: addComponent: Entity already has spine component
Maybe @will has some hints?
Any hints appreciated