I have an asset that has a skeleton, animations and some skins. Now skins can be changed as follows:
var NewCustomSkin = new Skin("CustomCharacter");
NewCustomSkin.AddSkin(skeletonData.FindSkin("MELEE"));
skeleton.SetSkin(NewCustomSkin);
I want to increase the number of skins. To do this, I have generated a lot of images and store them on a cloud server. This is an example of skin: https://storage.googleapis.com/nft-game-assets/images/10.png. I can download a png image and convert it to Texture 2D, but I can't figure out how to replace it in runtime. As I understand that I need to create a Skin. To do this, I need to convert Texture2D into an atlas? At this stage I am confused. How to do it? Is there any easy way.
Attaching to a bone doesn't suit me because I have a couple of complex animations.