public override void UpdateRenderQueue( RenderQueue queue )
{
if ( isVisible )
{
// only add this panel to the render queue if it is not transparent
// that would mean the panel should be a virtual container of sorts,
// and the children would still be rendered
if ( !isTransparent && material != null )
{
base.UpdateRenderQueue( queue, false );
}
foreach ( OverlayElement child in children.Values )
{
child.UpdateRenderQueue( queue );
}
}
}