


the Depth property) is used to control which one is visible. The worst situation then arises when all those Cameras are enabled and the Camera rendering order (i.e. One last example that doesn’t involve UI is using multiple Cameras to switch between viewpoints. The correct way to do this is to instead toggle either the activation of GameObjects or the enable flag of Canvas components. However, be also aware that nested canvases have an “Override Sorting” option which must be taken into account.Īnother case we’ve seen is using separate Cameras that render different parts of the game UI with culling masks for the sake of toggling the visibility of UI screens.

Instead, use the Canvas’ Sort Order or Plane Distance. Some users rely on Cameras to order their canvases.
