maxgribov/Spine

Images loaded after the application is launched

Opened this issue ยท 2 comments

Hey ๐Ÿ‘‹

I'm bold enough to try using your wonderful solution in one of the commercial projects ๐Ÿ˜‚

I have a test project running. But can you tell me, is there any manual or example on how exactly to use your library with images loaded after the application is launched?

You can use init(_ model: SpineModel, _ atlases: [String : SKTextureAtlas]) of Skeleton for it. All you need - is to prepare dictionary of the atlases that contains textures for each slot of your character. Images for those textures you can download from the server for example at the runtime.

More detailed instructions I don't have right now.

public convenience init(_ model: SpineModel, _ atlases: [String : SKTextureAtlas]) {

look at this document by the way. There is some more information about this topic:
https://github.com/maxgribov/Spine/blob/master/Sources/Spine/Documentation.docc/Skins.md

I'll try to find some time to write more detailed instructions about how to apply loaded from server assets.