【Mesh Filter】html
The Mesh Filter takes a mesh from your assets and passes it to the Mesh Renderer for rendering on the screen.this
Mesh Filter決定使用哪個Mesh。Mesh Filter只有一個參數,就是指定Mesh。spa
When importing mesh assets, Unity automatically creates a Skinned Mesh Renderer if the mesh is skinned, or a Mesh Filter along with a Mesh Renderer, if it is not.component
【Mesh Render】orm
The Mesh Renderer takes the geometry from the Mesh Filter and renders it at the position defined by the object's Transform component.htm
Mesh Render 負責渲染 Mesh Filter 指定的 Mesh,在 Transform 的位置渲染這個Mesh。blog
Mesh Render參數主要指定是否產生和接受陰影,以及使用了Meterial。ip
Meshes imported from 3D packages can use multiple Materials. Each submesh will use one material from the materials list. If there are more materials assigned to the Mesh Renderer than there are submeshes in the mesh, the first submesh will be rendered with each of the remaining materials, one on top of the next. At a cost of performance, this will let you set up multi-pass rendering on that submesh. Fully opaque materials, however, will simply overwrite the previous layers, costing performance for no advantage.rem
若是有多個Meterial,而且Meterial數量多過Submesh的數量,則第一個Mesh會使用本身對應的meterial以及剩下的meterial。排最後的meterial會被前面的meterial覆蓋或混合。get
一個GameObejct若是擁有多個Material,則Unity會將多個Material轉化爲多個Pass。