Mesh、MeshFilter、MeshRender

Mesh、MeshFilter、MeshRender

Mesh

Meshes contain vertices and multiple triangle arrays.

For every vertex there can be a normal, two texture coordinates, color and tangent. These are optional though and can be removed at will. All vertex information is stored in separate arrays of the same size, so if your mesh has 10 vertices, you would also have 10-size arrays for normals and other attributes.

MeshRenderer

Renders meshes inserted by the MeshFilter or TextMesh.

MeshFilter

A class to access the Mesh of the mesh filter.

總結:

從Mesh獲取數據
提供數據
MeshFilter
Mesh
MeshRender
渲染

MeshFilter獲取Mesh數據,提供數據給MeshRender進行渲染

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章