2dt Posted February 5, 2014 Share Posted February 5, 2014 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? Quote Link to comment Share on other sites More sharing options...
xerver Posted February 5, 2014 Share Posted February 5, 2014 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. 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.