Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Copy properties and groups from one blueprint to another
#1
Bombilla 
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.


Code:
bakedMesh = new Mesh();
originalMesh.BakeMesh(bakedMesh);

AssetDatabase.CreateAsset(bakedMesh, "Assets/bakedMesh.asset");
AssetDatabase.SaveAssets();

blueprint.inputMesh = bakedMesh;

yield return updatedBlueprint.Generate();

[Image: blueprint_obi.jpg]

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.
Reply


Messages In This Thread
Copy properties and groups from one blueprint to another - by nexar - 21-08-2020, 06:51 AM