Jump to content

Renderable property?


2dt
 Share

Recommended Posts

Apologies if this was already asked, but I searched and couldn't find an answer.

 

What exactly does the 'renderable' property do? From my experience with other 2d frameworks, you have opacity, which is a number value, then you have visibility, which toggles hiding or showing. Since Pixi as a renderable AND a visible property, what exactly is the difference between the two?

 

Does marking something as not renderable yield any particular performance benefit?

Link to comment
Share on other sites

Visible makes the object no longer draw *and* the updateTransform functions are not called. Renderable control only visibility on screen (updateTransform is still called). In the case of say MovieClip this means if renderable = false, but visible = true it will still animate but it will not be drawn to the screen.

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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