https://docs.unity3d.com/ScriptReference/Mesh.html

官方文档中的第二个例子显示,只能通过

mesh.vertices = vertices;

 这样赋值。。。    换成其他的不管用

 

本来是搜到一遍这样的文章

https://stackoverflow.com/questions/5099604/any-faster-way-of-copying-arrays-in-c   

是想测试下memcpyimpl  速度有没有快很多的,但是Unity 不允许其他的赋值方式.. Array.Copy也不能用

 

http://answers.unity3d.com/questions/417483/is-there-a-way-to-assign-meshverticesi-directly.html

一个能不能修改mesh中一部分的回答

posted on 2017-06-14 17:31  吕子明  阅读(376)  评论(0)    收藏  举报