Search Unity

UI disappearing when Dynamic Clipping is disabled

Discussion in 'UGUI & TextMesh Pro' started by MadWatch, Aug 28, 2021.

  1. MadWatch

    MadWatch

    Joined:
    May 26, 2016
    Posts:
    112
    Hello everyone

    I just noticed a weird issue with Unity's UI. When the Dynamic Clipping option is disabled in the scene view camera settings (see here) the UI is no longer rendered in the scene view (this doesn't affect the game, only the scene view).

    It seems that the UI is rendered very far from the camera and is culled by the far clip plane. When dynamic clipping is disabled the far of the camera is insanely high (800000 and above). When disabling dynamic clipping, I can sometimes still see the UI if I set the far to 10000 and above, but sometimes the UI is even further.

    Changing the canvas render mode doesn't seem to change anything.

    Is there any reason why the UI is rendered so freaking far from the camera? Is there a way to change that? I must restrict the near and far values of the camera because of some shader effects I'm working on. Re enabling dynamic clipping every time I must edit the UI and disabling it again afterward is super annoying.

    Thanks