MeshCombineUtility.cs method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found

1) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(27,74): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)

2) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(130,73): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `GetTriangleStrip' and no extension method `GetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)

html

3) Assets/Standard Assets/Scripts/MeshCombineUtility.cs(177,30): error CS1061: Type `UnityEngine.Mesh' does not contain a definition for `SetTriangleStrip' and no extension method `SetTriangleStrip' of type `UnityEngine.Mesh' could be found (are you missing a using directive or an assembly reference?)
 
總之都是方法名變了的錯。
 
把GetTriangleStrip改爲GetTriangles,對應着SetTriangleStrip也要改爲SetTriangles。
完工。
還有什麼坑之後再填。
感謝unity論壇的答疑帖:http://forum.unity3d.com/threads/meshcombineutility-error.307938/
http://answers.unity3d.com/questions/956685/meshcombineutility-problem-after-upgrade-to-unity.html
相關文章
相關標籤/搜索