playMaker

Author Topic: Possible to Set Material to another Material?[SOLVED]  (Read 1170 times)

Arcane

  • Playmaker Newbie
  • *
  • Posts: 2
Possible to Set Material to another Material?[SOLVED]
« 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!
« Last Edit: December 20, 2019, 02:44:11 AM by jeanfabre »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Possible to Set Material to another Material?
« Reply #1 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



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

 Bye,

 Jean

Arcane

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Possible to Set Material to another Material?
« Reply #2 on: December 18, 2019, 11:38:11 PM »
You're a Wizard Jean! Thank you very much, it works perfectly!