Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    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:
    91
    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:
    91
    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?
     
unityunity