मैं एक समस्या के साथ PixiJS 6.2.0. मैं पैदा करने के लिए एक चक्र है जो मैं करने के लिए चाहते हो सकता है इंटरैक्टिव है । मैं चाहता हूँ करने के लिए बाध्य घटनाओं क्लिक करने पर मँडरा, आदि. यह करने के लिए.
वृत्त दिखाया जा रहा है. वहाँ कुछ भी नहीं है, यह ऊपर के रूप में अच्छी तरह से. ऐसा लगता है जैसे केवल pointerupoutside घटना को ट्रिगर.
यह है कि मैं क्या मिला है अब तक:
const buttonTexture = new PIXI.Graphics();
buttonTexture.beginFill(0xff0000);
buttonTexture.drawCircle(buttonX, buttonY, buttonWidth * 0.8);
buttonTexture.endFill();
buttonTexture.hitArea = new PIXI.Circle(buttonX, buttonY, buttonWidth * 0.8);
buttonTexture.interactive = true;
buttonTexture.buttonMode = true;
buttonTexture.on('pointerdown', (e) => console.log(e));
buttonTexture.on('pointerup', (e) => console.log(e));
buttonTexture.on('pointerupoutside', (e) => console.log(e));
buttonTexture.on('pointerover', (e) => console.log(e));
buttonTexture.on('pointerout', (e) => console.log(e));
this.pixi.app.stage.addChild(buttonTexture);
क्लिक सर्कल में क्लिक करके और कहीं और क्लिक करने के बाद ट्रिगर में एक सांत्वना.लॉग इन करें.
क्या मैं करने की कोशिश की:
- फोन में सब कुछ requestAnimationFrame
- पार्स बनावट के लिए एक प्रेत और प्रेत इंटरैक्टिव है ।
- जोड़ने के एक टिकर और रेंडर चरण (AFAIK यह नहीं होना चाहिए की जरूरत में Pixi.JS 6)
किसी को भी एक संकेत समस्या क्या हो सकता है?