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
//let 'spine' be Spine objectvarspine=newPIXI.spine.Spine(loader.resources['spineBoy'].data);//let myTexture be the texture you are assigning. it can be something from the spritesheetvarmyTexture=loader.resources['newRegionTexture'].texture;spine.hackTextureBySlotName('head',myTexture);//Region attachments are tricky: they must have width and height, specify it if your texture differs from old onespine.hackTextureBySlotName('arm',myTexture,{width: 100,height : 100});//If you want texture have its natural size, pass it. pixiV3 - texture.frame, pixiV4 - texture.origspine.hackTextureBySlotIndex(7,myTexture,texture.orig||texture.frame);