修改模型的网格数据

内容会持续更新,有错误的地方欢迎指正,谢谢!

自定义Mesh

using UnityEngine;  
using System.Collections;  

/// <summary>  
/// 获取模型的所有顶点坐标  
/// </summary>  
public class GetVertex : MonoBehaviour {  

    void Start ()   
    {  
        Mesh mesh = GetComponent<MeshFilter>().mesh;  

        Vector3[] vertices = mesh.vertices;  

        foreach(Vector3 vertex in vertices)  
        {  
            Debug.Log(vertex);  
        }  
    }  

}  

未完待遇~

猜你喜欢

转载自blog.csdn.net/billcyj/article/details/80449877