How to copy Static Mesh to Dynamic Mesh with Material ?
I’m starting to learn how to use the Geometry Scripts, but i didn’t find how to keep the materials when i copy a static mesh to a dynamic mesh.
Please Help
How to copy Static Mesh to Dynamic Mesh with Material ?
I’m starting to learn how to use the Geometry Scripts, but i didn’t find how to keep the materials when i copy a static mesh to a dynamic mesh.
Please Help
Don’t know if it’s the best way (seems so though), but one is to get material from whatever base mesh you are using and set it on Dynamic Mesh Component:
It sets the material you can see and set manually in the editor:
[EDIT]
If you have more materials, this seems to work to iteratively add all of them to the component:
Materials
is an array of Material Interface
created just for this part.