Renato Fabbri Posted May 24, 2019 Share Posted May 24, 2019 for v4, this works: Also: https://stackoverflow.com/questions/50221078/how-to-change-style-of-lines-using-pixi-js-graphics But for PIXI v5, there is no PIXI.Graphics().graphicsData (it is undefined). Does someone know how to update line style using PIXI v5? Best and cheers, R. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
LOSSES Don Posted September 30, 2020 Share Posted September 30, 2020 Checkout the official document: https://pixijs.download/dev/docs/PIXI.Graphics.html#graphicsData Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted September 30, 2020 Share Posted September 30, 2020 (edited) Good question! We added special method for those hacks not so long ago! Here is code word for you: https://www.html5gamedevs.com/search/?q=invalidate&quick=1&type=forums_topic&nodes=15 It works, you can call "geometry.invalidate()" after you modify graphicsData Edited September 30, 2020 by ivan.popelyshev 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.