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.
Spine/Sources/Spine/Skeleton.swift
Line 73 in 4148e8d
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.