Hello Everyone!
I’m developing an Archviz apartment configurator and i want to add a function where i can “copy” a material from any actor in the scene and “paste” it on any actor of the scene.
I created a variable where i store the source material actor (sourceActor).
When i want to past the material on a destination actor, i do the following:
- Get the sourceActor from the variable
- Get its material
- Create a dynamic material instance from the material
- Get destinationActor
- Set Material to the destinationActor
Everything is working fine. Problem is, when i try to change any material parameter (Base Color for example) on ANY of the actors (source actor or destination actor) all the other change accordingly.
Looks like they are synched.
How can i paste a “different” instance of the dynamic material? I want them to be independent from each other so that i can change paramters individually even after i pasted the source material on them.
Thanks!