unity3D中使用mesh畫圓柱面

儘管unity3D中直接有模塊畫圓柱體,但畫圓面仍舊需要自己使用mesh來繪製。使用mesh畫圖一般分爲四個步驟。 1.頂點 2.三角形 3.UV 4.負載屬性與mesh 自己繪製一個簡單的平面代碼如下: Mesh Createmeshp(float radius, float Height) { //vertices: int p_vertices_cou
相關文章
相關標籤/搜索