- Home /
Modify mesh on load
Is there possibility to modify mesh, like uvs or vertices, during loading from fbx file? Im looking for something like XNA Content Pipeline, where you were able to put your own script to modify a little bit original model (geometry etc).
I know there is something like MeshFilter, but I believe it is not best solution in terms of performance.
You can write an editor script that modifies uvs or vertices in the editor before the app is run.
There is no script access to vertices and uvs as they're being loaded from file - as you guessed, you have to access them through the $$anonymous$$eshFilter afterwards. $$anonymous$$eshFilter has a mesh property which in turn has vertices and uv properties. These return the data after it's been loaded. You're free to modify it as you see fit there.
Answer by meat5000 · Aug 14, 2013 at 02:34 PM
It is possible to load a model into a scene then modify it and Save the changes.
Look at Procedural examples on Unity Asset store and also this thread
http://answers.unity3d.com/questions/39311/editor-scripting-how-to-save-a-script-generated-me.html