freddyInKorea Posted April 19, 2021 Share Posted April 19, 2021 (edited) Hello, I recently did update PIXI.JS from 5V to 6V, however I got some issues with events: FIRST, InteractionManager in V5 has a "on" method in order to subscribe to specific events such as 'pointerDown', 'pointerMove'... However in V6 this method doesn't exist anymore, I did find some events such OnPointerDown but they are private private onPointerDown; How to subscribe to them? SECOND, baseTexture used to have a "once" method, this method allows us to get notified when the texture is loaded it's really useful for my loading bar. However now I cannot find anything to get notified. I guess for these two points, I am missing something thank you for your help. Edited April 19, 2021 by freddyInKorea Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 19, 2021 Share Posted April 19, 2021 That's typings issue, right? just "as any" it and report to pixijs github issues same with baseTexture, just "as any". freddyInKorea 1 Quote Link to comment Share on other sites More sharing options...
gurkesaft Posted April 19, 2021 Share Posted April 19, 2021 I had the same issue. For me I had to use the add() method, so something like onWhatever.add(my function goes here). 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.