Hi everybody!
Is it possible to change atlas in spine animation by code? Have a json, atlas. But sometimes icons needs to be changed.
Thanks!
Hi everybody!
Is it possible to change atlas in spine animation by code? Have a json, atlas. But sometimes icons needs to be changed.
Thanks!
And additional question - can I create atlas and spinescene by code?
A spine model can have multiple skins and you can use this to update the visuals for the entire model or a single slot.
And spine.set_skine(url, spine_skin, [spine_slot])
.
No, not at the moment. We have plans to introduce a texture manipulation API: Texture manipulation API · Issue #5948 · defold/defold · GitHub
Skin - it’s same as atlas?
No, it’s still the same atlas, but it gives you a way to change the image used by the entire model or a single slot. In your case it can be used to change the icon you mentioned.
Another option would be to attach a game object with a sprite to the bone where the icon is supposed to be and replace that instead.