Hi Jose,
I'm writing to you again, because we have this situation:
We have an original 3D mesh with blendshapes and its blueprint configured (with its own properties and particle groups).
At one point the blendshapes change once, and then we bake the mesh with the updated blendshapes, to have the "updated baked mesh".
With this baked mesh we generate its new blueprint, which has exactly the same number of particles as the original blueprint.
How can we copy each property and particle group from the original blueprint to the new generated blueprint?
What is the right way to achieve this at runtime using scripts?
How should we go through the list of particles of the original blueprint, to read and copy each property and group?
Should we first generate the new blueprint for the updated baked mesh, and then edit the property and group of each particle?
We would appreciate your help in doing this.
Thanks in advance!
PD: Le agradeceremos muchísimo si por favor nos respondiera pronto, pues es lo único que nos falta para terminar el proyecto.
I'm writing to you again, because we have this situation:
We have an original 3D mesh with blendshapes and its blueprint configured (with its own properties and particle groups).
At one point the blendshapes change once, and then we bake the mesh with the updated blendshapes, to have the "updated baked mesh".
With this baked mesh we generate its new blueprint, which has exactly the same number of particles as the original blueprint.
Code:
bakedMesh = new Mesh();
originalMesh.BakeMesh(bakedMesh);
AssetDatabase.CreateAsset(bakedMesh, "Assets/bakedMesh.asset");
AssetDatabase.SaveAssets();
blueprint.inputMesh = bakedMesh;
yield return updatedBlueprint.Generate();
How can we copy each property and particle group from the original blueprint to the new generated blueprint?
What is the right way to achieve this at runtime using scripts?
How should we go through the list of particles of the original blueprint, to read and copy each property and group?
Should we first generate the new blueprint for the updated baked mesh, and then edit the property and group of each particle?
We would appreciate your help in doing this.
Thanks in advance!
PD: Le agradeceremos muchísimo si por favor nos respondiera pronto, pues es lo único que nos falta para terminar el proyecto.