I need to spawn various things but with separate materials because I need
to access the material links (value/rgb) on each object separately for
individual color modulation.
I get the color modulation going, no problem, but obviously they share the same
material, so all of them do the same thing.
I need to be able to apply color modulation individually per instance.
I think I need to clone/duplicate the material at runtime when the object spawns?
Or add a new one per instance? Not sure. Maybe I think too complicated.
Usually in other engines there is something like “unique per instance” or “local to scene” or stuff like that so that changing a value is unique to the instance and doesn’t affect all of them. But I guess we have to code this behaviour ourselves. Any ideas?