Try to set the layer at a minus value: layer = -1; That should render the Panel behind all entities.