Using UI elements in custom layers

If you are using 2D UI elements on a custom layer, please remember to set the sort order to Manual:

This is because the 2D UI has a custom render order compared to what you normally use in a 3D world and therefore, the layer the UI renders on, needs to be set to manual to have the same result as it would do if it was on the default UI layer.