Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

camera.nearClipPlane : text disappears before non-text game objects

Discussion in 'General Graphics' started by btschumy, Jul 28, 2021.

  1. btschumy

    btschumy

    Joined:
    Jul 31, 2019
    Posts:
    93
    l have an astronomy visualization. I have a Sun game object and a text object that labels it.

    I have set the nearClipPlane of the camera to 0.001. As expected, when zooming in close to the Sun, the sun object disappears at a dispense of 0.001. However the text object disappears way before that, at a distance of around 0.009.

    This seems to happen with all my TMP text labels in the visualization.

    I would prefer that the labels respect the same nearClipPlane as the other game objects. Can anyone explain what might be going on here?
     
  2. btschumy

    btschumy

    Joined:
    Jul 31, 2019
    Posts:
    93
    One thing I just noticed. If I set the nearClipPlane to 0.01 (which is the minimum you can set it to in the editor), then they both disappear at the same time. Is it really not possible to have a value smaller than the editor minimum?