- Home /
Are Mesh Filters Really Necessary?
Im using both a mesh filter and mesh renderer on a level piece. If I remove the mesh filter everything still works... Is it really necessary?
Answer by Bunny83 · Jul 14, 2016 at 01:47 AM
Uhm, sure. If you use a MeshRenderer, how would you specify which mesh should be rendered? Unlike a SkinnedMeshRenderer a MeshRenderer doesn't have a mesh reference.
If you remove the MeshFilter, next time your scene is deserialized / loaded the mesh won't be visible since the MeshRenderer doesn't know what to render.
@Bunny83 ahh okay. That makes sense. So What If I remove it in a start method? Will that help optimization in any way?
No, not really. The $$anonymous$$eshFilter does nothing on it's own. It just has a reference to a mesh instance. It's a pure passive component. Removing that component would only free a few bytes of memory. It has no impact on performance.
Hmm... Alright. Just one less thing for me to do then.. lol. Thanks!
Your answer
Follow this Question
Related Questions
Changing two different objects renderer colour 1 Answer
Why is only the last Material in the Materials array on a Mesh Renderer used? 2 Answers
Swapping out materials on a skinned mesh renderer? 3 Answers
How to switch the texture being used by the material of the mesh renderer 1 Answer
Can't render GameObject 3 Answers