- Home /
Frustum culling
How unity culling object by frustum, example: I have one object consisting of 10 meshes, will it cull every mesh or whole object only?
Answer by duck · Dec 16, 2009 at 02:47 PM
If, by "object" you mean a single GameObject whose Mesh has a number of SubMeshes, then I think it's done by whole-object only, rather than sub-meshes. This is backed up by the fact that there appears to be only one function to Recalculate the Bounding Volume of your mesh as a whole, not individual sub-meshes.
However, if by "object" you mean a parent GameObject, with multiple child GameObjects, each with their own mesh renderer, then I believe each GameObject will be view-frustum-culled independently.
You're correct in saying so. I've seen this in my optimizing for frustum culling on the iPhone. If the g.o. is comprised of several meshes each with individual transform properties it is done on a per-mesh basis.
Your answer
Follow this Question
Related Questions
Mesh.CombineMeshes does not work when mergeSubMeshes=false 2 Answers
How can I optimize my range tests? 1 Answer
Are .gameObject and .transform both using GetComponent() in the background? 1 Answer
Detecting if two meshes intersect, precisely 1 Answer
What do I add to the LOD Renderer in MonoBehaviour? 2 Answers