Hi
I have recently upgraded to Unity 3.2 and now having an issue with a mesh filter that is missing the prefab mesh. (please see attached images)
So I am trying the following:
MeshFilter mf = (MeshFilter)cloneBlock.GetComponent(typeof(MeshFilter)) as MeshFilter;
MeshRenderer mr = (MeshRenderer)cloneBlock.GetComponent(typeof(MeshRenderer)) as MeshRenderer;
and once I added the following line:
Mesh mesh = mf.mesh;
I only see the correct mesh name ( “block0”) appears in the Mesh Filter panel, but the mesh is not visible. Why? Perhaps I am not assigning mf.mesh correctly. Is there a new way to assign existing mesh to a mesh filter? and how do I invoke the mesh renderer? What am I missing?
Really appreciate if someone can help on this urgent matter.
Thank you
hg111