Jump to content

Way to found when display object added to and removed from dispaly list


Recommended Posts

I know about 'added' and 'removed' events, but they fired only when display object added to parent container. So I was looking for events similar of flash events ADDED_TO_STAGE and REMOVE_FROM_STAGE, and found this topic 

So far, as I understood, in pixi.js there is no way to get event of adding to display list graph, and this is VERY, VERY UNCONVENIENT. Let me explain my situation, I need to apply some logic to display objects when they on stage, and remove this logic when they off. It can be done easily with such types of events, but now I wondering what to do? Implement my own, or there are any other ways?

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...