That’s one of the problems - and the one that currently stands out the most. You’re looping every material for every smc. Let’s say you have 5 meshes and 5 materials. You will end up adding 25 material instances instead of 5, and then apply tangents 25 times as well…
See if the following makes sense in your case:
- in the
Construction Script
,Add
theSMCs
in an array and make 1DMI
for each, and assign it:
- to loop through the walls:
I’ll admit I do not fully understand what the Timeline
has to do with the Construction Script
. I guess you want to create the materials in the CS but fade them run-time. Am I close?