macpherson Posted June 12, 2018 Share Posted June 12, 2018 Hi! Is there any way to make set of arcs interactive? I have next not working code: items.forEach(item => { const arc = new PIXI.Graphics(); arc.lineStyle(...); arc.arc(...); arc.interactive = true; arc.on('mousedown', event => { ... }) app.stage.addChild(arc); }) How to handle that correctly? Quote Link to comment Share on other sites More sharing options...
Exca Posted June 13, 2018 Share Posted June 13, 2018 You need to add hitarea to arc as arcs only have lines and no solid hitarea. You could for example add a polygon hitarea that roughly follows the arc. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 13, 2018 Share Posted June 13, 2018 @bigtimebuddy had a workaround somewhere 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.