pixi-compressed-textures icon indicating copy to clipboard operation
pixi-compressed-textures copied to clipboard

how can i make a line clickable?

Open giao123-cloud opened this issue 2 years ago • 1 comments

let shapes = new PIXI.Graphics(); shapes.lineStyle(1 / scale, 0x4169e1, 1); shapes.moveTo(Apoints[0], Apoints[1]); shapes.lineTo(Bpoints[0], Bpoints[1]); shapes.isRobot = true; app.stage.addChild(shapes); shapes.on("pointerdown", function (e) { alert(111) }); i tried to make a line clickable, but failed, help!

giao123-cloud avatar Apr 15 '22 07:04 giao123-cloud

Wrong repo for that question

ivanpopelyshev avatar Apr 15 '22 13:04 ivanpopelyshev