TextMeshProGUI and SpriteRenderer dissapering when getting close to camera edge

Hello,

I am having an issue where some TextMeshProGUI (with Canvas set in world space) and Sprite Renderers disappearing when close to the camera edge causing some popping effect when the camera moves.

I’ve somehow narrowed down the problem to the bounding box of the text.

In the first image the text does not appear, but if I slightly decrease the bounding box size it appears (see image 2). This also happens with the SpriteRenderer.

I have disable occlusion culling already on the camera but it doesn’t change anything.

Following this question: https://forum.unity.com/threads/objects-disappear-when-i-move-camera-no-clipping-issue.916937/ I have also tried to set “Update When OffScreen” to off but TextMeshProGUI and SpriteRenderes do not seem to have that option.

Does anybody have any solutions ?


Have you tried changing the render bounds to some high value yet?

spriteRenderer.bounds = new Bounds( Vector3.zero , new Vector3(1,1,1) );

This kind of issues, where objects are popping in/out when near the edge of camera frustum, are almost always caused by the render bounds being either of size 0 (points without volume) or their volume is too small and is not enveloping the entire mesh at all times (when mesh is being animated too).