Mesh.UploadMeshData

Switch to Manual
public void UploadMeshData (bool markNoLogerReadable);

Parameters

markNoLongerReadable 设置为 true 时,释放网格数据的系统内存副本。

Description

将以前进行的网格修改上传到图形 API。

从代码创建或修改网格(使用 verticesnormalstriangles 等属性)时,网格数据在内部标记为“已修改”,会在下次渲染网格时发送给图形 API。

Call UploadMeshData to immediately send the modified data to the graphics API, to avoid a possible problem later. Passing true in a markNoLogerReadable argument makes Mesh data not be readable from the script anymore, and frees up system memory copy of the data.

另请参阅:verticesnormalstrianglesMarkDynamic