Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: jess84 on April 17, 2014, 08:29:04 PM

Title: How to modify Material Global Variable? [SOLVED]
Post by: jess84 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,
Title: Re: How to modify Material Global Variable?
Post by: jeanfabre 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
Title: Re: How to modify Material Global Variable?
Post by: jess84 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

?
Title: Re: How to modify Material Global Variable? [SOLVED]
Post by: jess84 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