playMaker

Author Topic: How to modify Material Global Variable? [SOLVED]  (Read 2319 times)

jess84

  • Hero Member
  • *****
  • Posts: 515
How to modify Material Global Variable? [SOLVED]
« on: April 17, 2014, 08:29:04 PM »
I can't seem to work this out... there doesn't seem to be an action to change the global material variable object that I've set?

I was kinda expecting it to work in the same way that 'Set Game Object' does.

I don't want to have to change all of my game objects, so I thought changing these 4 globals to point to different materials would be the easiest, but it seems I can't.

Thanks in advance,
« Last Edit: April 19, 2014, 01:24:26 PM by jess84 »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to modify Material Global Variable?
« Reply #1 on: April 18, 2014, 07:22:15 AM »
Hi,

 Basically you'll need to have one material per object you need to change.

bye,

 Jean

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: How to modify Material Global Variable?
« Reply #2 on: April 18, 2014, 11:26:42 AM »
That's not really what I'm after.

Would a custom action be possible, like Set Game Object but with the following two options;

Set Material:

Variable
Material

?

jess84

  • Hero Member
  • *****
  • Posts: 515
Re: How to modify Material Global Variable? [SOLVED]
« Reply #3 on: April 19, 2014, 01:24:59 PM »
custom action written by the wonderful Marsh,here:
http://hutonggames.com/playmakerforum/index.php?topic=7045.0