Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: pietwelve on October 17, 2012, 02:01:29 AM

Title: Object Independant "Set Material color"
Post by: pietwelve on October 17, 2012, 02:01:29 AM
Hi,
I'm new with Playmaker so this is a basic question.
I wana use a "Set Material color" Action that would change the material
not only for the  FSM Owner
but for watever objects using that material.
Is that possible ?
Without using arraymaker (to complicated for me)
Without applying a fsm to all the objects using the material.
Thanks
Alain
Title: Re: Object Independant "Set Material color"
Post by: jeanfabre on October 17, 2012, 02:41:20 AM
Hi,

 you need to change the material resource itself then.

use the "set material color" action. set the gameObject to none ( select the variable option, but don't select any, it shosws then 'none')

 drag the material from the project browser ( NOT the scene itself), and then you will change the material itself and any object using ti will update.

If you have trouble setting it up, let me know, I'll do a quick working sample, but you should be fine.

bye,

 Jean
Title: Re: Object Independant "Set Material color"
Post by: pietwelve on October 19, 2012, 09:05:14 PM
Hi,
very sorry Jean but I can't find out how to drag the material from the Project window into the "none" field.
Playmaker doesn't alow it.
I must do something wrong ...
Could you help me :-)
Thanks again
Title: Re: Object Independant "Set Material color"
Post by: jeanfabre on October 22, 2012, 03:26:15 AM
If you have the none fields, that means you are supposed to pick a fsm variable you have created earlier.

simply switch to drag and drop on that material field by clicking on the right icon of it, it will then let you drag the material

yes?

bye,

 Jean