Removing MeshFilter!!

Hi,

For any game-object in Unity, if i remove the ‘MeshFilter’ component, the following things make me wonder!!:

  1. No mesh data at runtime – this is fine
  2. Still draws the object – this is bizzare since there’s no ‘MeshFilter’ component having the corresponding mesh!!
  3. In conformance with #2, stats window shows no change after removing ‘MeshFilter’

Does mesh data remains with Unity runtime even after removing the ‘MeshFilter’ component at runtime?

You need the MeshFilter in order to specify what mesh to render. Without a MeshFilter, you won’t see anything. Yes, you can delete the component at runtime and it will still render, at least for a while (probably cached like Graham Dunnett said). I wouldn’t rely on that, though, and you don’t gain anything, so there’s no reason to do it. Try this: put an object in the scene, delete the MeshFilter component, save the scene, then reload it. See, now the object is invisible, because it doesn’t know what to render.