You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varrawSkeletonData=JSON.parse("$jsondata");//your skeleton.json file herevarrawAtlasData="$atlasdata";//your atlas file varspineAtlas=newPIXI.spine.core.TextureAtlas(rawAtlasData,function(line,callback){// pass the image here.callback(PIXI.BaseTexture.fromImage(line));});// specify path, image.png will be added automaticallyvarspineAtlasLoader=newPIXI.spine.core.AtlasAttachmentLoader(spineAtlas)varspineJsonParser=newPIXI.spine.core.SkeletonJson(spineAtlasLoader);// in case if you want everything scaled up two timesspineJsonParser.scale=2.0;varspineData=spineJsonParser.readSkeletonData(rawSkeletonData);// now we can create spine instancevarspine=newPIXI.spine.Spine(spineData);