arc.hitArea = new PIXI.Polygon(arc.currentPath.points);
But its not only making the line clickable but also the fill area, which make sense since the hitArea is a Polygon.
I like to draw a curve and enable click on it (only on the line). I tried the docs and google not able to find any solution. Any help and tips are appreciated.
Hello, After adding a line or curve using
bezierCurveTo
orlineTo
function ofPIXI.Graphics
mouse events not triggering on them.I tried the following
But its not only making the line clickable but also the fill area, which make sense since the hitArea is a Polygon.
I like to draw a curve and enable click on it (only on the line). I tried the docs and google not able to find any solution. Any help and tips are appreciated.
Thanks.