05-08-2021, 06:25 PM
Hi
Let me know if this didn't work
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Code:
CurvyGenerator yourGenerator = ...;
var allVolumeMeshModules = yourGenerator.FindModules<BuildVolumeMesh>();
foreach (BuildVolumeMesh module in allVolumeMeshModules)
{
Material existingMaterial = module.GetMaterial(0);
module.SetMaterial(0, yourMaterial);
}Let me know if this didn't work
If and when you feel like it, please leave a review for the asset, that helps a lot.
Have a nice day
Please consider leaving a review for Curvy Splines, this helps immensely. Thank you.

