neurofuzzy Posted December 29, 2014 Share Posted December 29, 2014 I recently upgraded from PIXI 1.5.4 to 2.2 and I am getting this error when I drag the mouse on the canvas: Uncaught TypeError: Cannot read property 'length' of undefined PIXI.InteractionManager.collectInteractiveSprite PIXI.InteractionManager.collectInteractiveSprite PIXI.InteractionManager.rebuildInteractiveGraph PIXI.InteractionManager.onMouseMove It appears to be PIXI.InteractionManager.prototype.collectInteractiveSprite hitting a child node with no children array. if (child.children.length > 0) { this.collectInteractiveSprite(child, iParent); }Any clues as to what is going on? This problem also occurs in PIXI 1.6.0 Quote Link to comment Share on other sites More sharing options...
neurofuzzy Posted December 29, 2014 Author Share Posted December 29, 2014 I think I solved this. I was adding a PIXI.DisplayObject to a PIXI.DisplayObjectContainer on the stage. I was only using it as a reference point (origin), but it appears you can no longer add a DisplayObject, it must be at least a DisplayObjectContainer. 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.