Unity3D中关于Mesh.MarkDynamic

版权声明:欢迎交流,本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_42513339/article/details/83277011

Mesh.MarkDynamic :标记为动态

public void MarkDynamic();

Unity圣典是这么翻译:

Optimize mesh for frequent updates.

优化频繁更新的网格。

Call this before assigning vertices to get better performance when continually updating mesh. Internally this will make the mesh use “dynamic buffers” in the underlying graphics API, which are more efficient when mesh data changes often.

分配顶点之前调用这个,当连续更新网格时,以获得更好的性能。内部将使网格在底层图形接口使用“动态缓存器”,当网格数据经常改变时,更高效。

猜你喜欢

转载自blog.csdn.net/weixin_42513339/article/details/83277011