Hi,
I have a mesh renderer that becomes “not visible” too early (is an animated mesh and it’s far from the animation root make it with Spine). So, it disappear from the screen. Is it exist a way to draw meshes that are not in the screen?
Thank you
Hi,
I have a mesh renderer that becomes “not visible” too early (is an animated mesh and it’s far from the animation root make it with Spine). So, it disappear from the screen. Is it exist a way to draw meshes that are not in the screen?
Thank you
In the SkinnedMeshRenderer there is an option called: Update When Offscreen. Check that and the bounds will update to fit around the mesh even when it is animated far from the root. This will prevent the camera from culling it away.
We used this line
GetComponent<MeshFilter>().sharedMesh.RecalculateBounds();
to recalculate the mesh bounds on our Spine animation. it was being culled prematurely, as the animation deviated from the root quite a bit.
Hope this helps!