www.taras Posted May 22, 2020 Share Posted May 22, 2020 Hi, I have Spine Animation(used atlas bitmaps). Can i access to it atlas (single bitmap) Texture to create new PIXI.Spite? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 22, 2020 Share Posted May 22, 2020 Yes. Quote Link to comment Share on other sites More sharing options...
www.taras Posted May 22, 2020 Author Share Posted May 22, 2020 How? from new Spine(...).spineData.defaultSkin.attachments or any short path ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 22, 2020 Share Posted May 22, 2020 https://github.com/pixijs/pixi-spine/blob/471bf51e91940076c5c0dd1cb05e16caa5bfe526/src/loaders.ts#L124 https://github.com/pixijs/pixi-spine/blob/471bf51e91940076c5c0dd1cb05e16caa5bfe526/src/core/TextureAtlas.ts#L34-L35 "resource.spineAtlas.regions[something]" as for attachments - they have extra info you might need if you get anything useful, please post it here, becaue we dont have recipes regarding creationg of attachments in runtime here: https://github.com/pixijs/pixi-spine/tree/master/examples Quote Link to comment Share on other sites More sharing options...
www.taras Posted May 22, 2020 Author Share Posted May 22, 2020 Thanks! Спасибо Иван! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.