Question by
mr_duke · Dec 10, 2015 at 12:21 PM ·
meshoptimizationbuildingbuildpipeline
How to change mesh.vertices in a during build project time?
Hello. I'd like to apply some optimize changes in my mesh when project is building. But i wanna keep my reference mesh for further editing. Thanks.
Comment
Answer by JedBeryll · Dec 10, 2015 at 02:19 PM
Keep the mesh in a variable, instantiate it and assign the instance to whatever you want and modify that.
For exapmple i have an modyfyed instantiae of mesh, how i can apply it after press "build project" button in unity. Thx.
What do you mean? If you mean at runtime then for example:
$$anonymous$$esh meshInstance;
$$anonymous$$eshFilter myFilter;
void Start() {
myFilter.mesh = meshInstance;
}
But I mean some "PostProcessor" features ins$$anonymous$$d "Start" http://docs.unity3d.com/$$anonymous$$anual/BuildPlayerPipeline.html I wanna make some change when run build player