- Home /
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 $$anonymous$$esh.Optimize() i create only very simple meshes procedurally. $$anonymous$$aybe someone have more information on that.
Answer by jonas-echterhoff · Mar 15, 2011 at 01:08 PM
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
Your answer
![](https://koobas.hobune.stream/wayback/20220613112905im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Bounds of dynamic mesh not updating 1 Answer
Optimizing procedural meshes 0 Answers
Adding extra materials to a mesh programmatically 0 Answers