Jenson Posted November 29, 2019 Share Posted November 29, 2019 Hi everyone! I need to change slot attachment with text in PIXi-spine. How can I do this? I found somethings on this. Could you please explain to me? I am hearing you here asap! Thanks Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 29, 2019 Share Posted November 29, 2019 (edited) Four years ago users figured out that we need a special function to swap textures even if doesn't exist in original esotericsoftware spine runtime. Catch! https://github.com/pixijs/pixi-spine/blob/master/examples/hack_texture.md Just call "text.updateTexture" and then you can pass that "text.texture" to spine. It'll change existing sprite texture. Edited November 29, 2019 by ivan.popelyshev mazoku and Jenson 2 Quote Link to comment Share on other sites More sharing options...
Jenson Posted November 29, 2019 Author Share Posted November 29, 2019 Thanks! That's working now. But this is another problem Create Textures from PIXI.Text how can I solve this problem? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 29, 2019 Share Posted November 29, 2019 I thought I answered both problems, re-read it or try elaborate again Quote Link to comment Share on other sites More sharing options...
Jenson Posted November 29, 2019 Author Share Posted November 29, 2019 Thanks I fixed my issue. But another problem, if I call the updateTexture(), I can't change the text? textObject.updateTexture(); textObject.text = "another string"; Is it working? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 2, 2019 Share Posted December 2, 2019 please update pixi-spine, we found that in 2.1.4 hackTexture didnt work. 2.1.6 fixed it. Jenson 1 Quote Link to comment Share on other sites More sharing options...
Jenson Posted December 3, 2019 Author Share Posted December 3, 2019 Thanks a lot. I fixed my problem 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.