- Edited
run-time attacments.
There are a bunch of posts about this and it seems there is no definitive answer.
I want to be able to change the images used in an attachment at run-time and more importantly I don't want that image stored or hardcoded in the main spine file. An example of use would be welding a different sword. I might have hundreds of different swords that need to be attached and I don't want to have to embed them in the main spine files atlas or even rebuild the main spine file if a new sword is added. I've heard hints that this is possible but never seen an example of it's use.
What Spine Runtimes do you want to use? This is specific to the engine you are using, so we need that info to provide help.
Mario wroteWhat Spine Runtimes do you want to use? This is specific to the engine you are using, so we need that info to provide help.
I'm using WebGl. Are there any solutions for it?
I suggest you give pixi-spine a try, as PixiJS is much more complete when it comes to implementing a full game. You can find an example on how to attach a custom image here:
https://github.com/pixijs/pixi-spine/blob/master/examples/dynamic_texture_atlas.md