How can I change spinescene or spinemodel inside GO in runtime?

Here is a problem: I have a GO with spinemodel inside it which is spawned with a factory. This GO represents a Unit, which can have several forms. Each form is a separate spinescene with its own animations, bones and so on. So, the question is - how can i change spinescene or spinemodel inside GO during runtime?
We cant merge all animations in one Json file, so, all forms of Units are separate Json files.

The only thing I can think of is to either have one game object per spinemodel. Or have multiple spinemodels and only enable one of them.

So, spinescene is heavily nailed to spinemodel and cannot be changed separately?

i’ve created a feature request for this.

I am not sure, but I think that this point can be easily explained by the general philosophy of Defold: the engine likes and strongly wants to preload all the contents as soon as possible. Just my idea…

1 Like