kristina.demeshchik Posted November 11, 2016 Share Posted November 11, 2016 Hello everyone! I'm currently working with the latest version of PIXI.js (4.1.1) and have a problem with masked container. Code example: var stage = new PIXI.Container(), mask = new PIXI.Graphics(), gameStage = new PIXI.Container(); mask.drawRect(0, 0, 1100, 630); mask.endFill(); gameStage.mask = mask; stage.addChild(rectangle); stage.addChild(gameStage); gameStage contains a list of interactive buttons but I can't interact with any element behind the mask. Quote Link to comment Share on other sites More sharing options...
kristina.demeshchik Posted November 11, 2016 Author Share Posted November 11, 2016 Found this https://github.com/pixijs/pixi.js/issues/3151 Quote Link to comment Share on other sites More sharing options...
themoonrat Posted November 11, 2016 Share Posted November 11, 2016 There are a couple of known bugs that could cause this; both of which are fixed in the latest dev build. Could you try http://pixijs.download/dev/pixi.js and see if that works please? Quote Link to comment Share on other sites More sharing options...
kristina.demeshchik Posted November 11, 2016 Author Share Posted November 11, 2016 Still not working Quote Link to comment Share on other sites More sharing options...
xerver Posted November 11, 2016 Share Posted November 11, 2016 Would you mind creating a jsfiddle that uses the latest dev (linked by themoonrat) and reproduces your issue? It will be much easier to debug that so we can track this down! Thanks! Quote Link to comment Share on other sites More sharing options...
kristina.demeshchik Posted November 15, 2016 Author Share Posted November 15, 2016 You can find jsfiddle link right here https://github.com/pixijs/pixi.js/issues/3151 https://jsfiddle.net/tt4zd79p/ Quote Link to comment Share on other sites More sharing options...
kristina.demeshchik Posted November 15, 2016 Author Share Posted November 15, 2016 I've just realized that adding a fill to the mask solve the problem. 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.