cDecheva Posted February 10, 2020 Share Posted February 10, 2020 Hi! I need to upgrade PIXI to the newest version, because I must support canvas, but I have this problem: What is the alternative of beginTextureFill after PIXI 5.2.0? What does object-based options mean? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 10, 2020 Share Posted February 10, 2020 (edited) It means you have to pass an object We've changed API a bit. You can see the IF here: https://github.com/pixijs/pixi.js/blob/9ed7127bac9e696852a187e5403f313474f81365/packages/graphics/src/Graphics.ts#L709 beginTextureFill({ texture: myTexture }); Btw, now it works with canvas2d if you take dev version (https pixijs.download/dev/pixi-legacy.js), I made it a week ago or so: https://github.com/pixijs/pixi.js/pull/6367 Edited February 10, 2020 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
cDecheva Posted February 11, 2020 Author Share Posted February 11, 2020 Thanks for the answer. I fixed it and with the version from dev works for both Canvas and WebGL. I still have one warning : How can I fix it? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 11, 2020 Share Posted February 11, 2020 16 minutes ago, cDecheva said: Thanks for the answer. I fixed it and with the version from dev works for both Canvas and WebGL. I still have one warning : How can I fix it? Use not-minified js file, place a breakpoint in a deprecation, figure out where is it called from, post an issue or Pull Request in https://github.com/pixijs/pixi.js Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 11, 2020 Share Posted February 11, 2020 Thank you! Now I see that I have no idea how to trigger that. Do you use RenderTexture? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted February 11, 2020 Share Posted February 11, 2020 OK, we merged it in dev, please check it. 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.