How to Draw HUD sprites/layer on top when using PositionZ

I was wondering how to draw Sprites or a Layer and its children on top of the scene when there are Sprites in the scene that have both negative and positive PositionZ values. In simple terms how to disable depth testing and make sure that the rendering occurs after all other nodes.

  1. Background ( setPositionZ(-500) )
  2. Game Layer / Isometric Tilemap ( setPositionZ(-200 to 200) )
  3. HUD Layer (draw on top without having to e.g. setPositionZ(1000) on each child sprite or widget )

Can this be done by overriding visit or draw in the Layer.

Currently I can get the desired affect by setting all HUD nodes positionZ value to something greater than all other nodes in the scene. This is not hard, and is both simple and straight forward, but it would be even easier if a layer could be setup or overridden to draw itself and its children on top of a scene that is using OpenGL vertex Z positioning.

I read this post, but I’m not sure a custom command is the desired solution?