Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: MarkD on July 13, 2019, 02:01:20 PM
-
Hey there,
I'd like to change a material that is shared by multiple objects. The context is that I would like to fade out a large number of objects at the same time, but I don't want to have to have an individual script on each object. So I'd like to lower the alpha on a shared material and have all of the objects that share that material fade out.
Using Set Material with a prefab throws warnings about attempting to change a shared object and all of my searches of the Ecosystem hasn't turned up anything.
Does anyone know how to do this or knows how to write an action that can?
-
that`s very easy to do that, you will able to do that by use the "set material color" action, then leave the Material field to None
-
Yep - that changes the material for that instanced object, but the other objects that share that same material remain unchanged. I'd like to fade out a material and have ALL of the objects that share that material fade out, too.
Thoughts on that?
-
if you want to change the a lot amount of materials just drag drop the original material from project panel into material field
-
Bam! That did it! Thank you!