Jump to content

Multi level masking only to 2 levels deep


Recommended Posts

Hi all

I notice that I can only  apply mask up to 2 levels deep. If you apply a 3rd level depth mask it removes the one before it. I'm using 4.2.2. Any ideas? Thanks!


var main = new PIXI.Container();

var mask1 = new PIXI.Graphics();
main.mask = mask1;

var child1 = new PIXI.Container();
main.addChild(child1 )

var mask2 = new PIXI.Graphics();
child1.mask = mask2;

var child2 = new PIXI.Container();

//does not work 
var mask3 = new PIXI.Graphics();
child1.addChild(mask3 );
child2.mask = mask3 ;


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...