jodo Posted August 29, 2017 Share Posted August 29, 2017 I want the User to be able to connect two Objects with a Line. Therefore I need the hit target on pointerup. I display the virtual line which changes position with moving the cursor (the end of the line is always below the cursor). Thus when the user clicks the hit target is always the virtual line object. Is it possible to get all hit targets (also the ones below) and not just the first one? Or something like a blacklist/whitelist to ignore some interactive elements on the hit test or only test specific objects? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 30, 2017 Share Posted August 30, 2017 There's interactiveChildren. That kind of problems are solved through reading this method: https://github.com/pixijs/pixi.js/blob/dev/src/interaction/InteractionManager.js#L991 . If you dont fint the way with vanilla, you can patch it like that: PIXI.InteractionManager.processInteractive = function(...) { ... } 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.