Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Arcane on October 18, 2019, 11:57:27 PM

Title: Possible to Set Material to another Material?[SOLVED]
Post by: Arcane on October 18, 2019, 11:57:27 PM
Hello Everyone,

I'm trying to set up a skin system for my game. I have a bunch of Object Prefabs that are using the same masterMat(just a default Material)

Is it possible to Set(basically copy) a Material to another Material?

Example. (iceMat) Set to----> (masterMat) = all Objects & Prefabs with(masterMat) are now ice since(iceMat's Values were copied to masterMat)

The "Set Material" action only lets me assign a Material to a Game Object not another Material sadly.

any help appreciated,
Thanks!
Title: Re: Possible to Set Material to another Material?
Post by: jeanfabre on November 13, 2019, 02:57:51 AM
Hi,

Indeed, Unity has a way to do that, I just made an action for this. It's on the ecosystem: CopyMaterialProperties

(https://i.imgur.com/JQuQJTl.png)

Let me know how it goes, it works for me here.

 Bye,

 Jean
Title: Re: Possible to Set Material to another Material?
Post by: Arcane on December 18, 2019, 11:38:11 PM
You're a Wizard Jean! Thank you very much, it works perfectly!