when should Mesh.Optimize() be called

for a procedurally generated / modified mesh, when should Mesh.Optimize() be called? Before or after RecalculateBounds() and RecalculateNormals() etc?

Hmm, I guess it doesn't really matter but just to put them in some kind of logical order i would say: before. Never really used Mesh.Optimize() i create only very simple meshes procedurally. Maybe someone have more information on that.

1 Answer

1

`Optimize()` will recalculate the bounds for you, so there is no need to call `RecalculateBounds()` after doing an optimize.

why you should not include something like this in the main documentation. please let the online documentation show questions/answers related to each API in it's documentation page. unity's documentation should be much more detailed. however it's one of the best in middleware market of gameengines

it would be nice to have a php.net style documentation for unity

What about recalculatenormals?