playMaker

Author Topic: Object Independant "Set Material color"  (Read 2290 times)

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Object Independant "Set Material color"
« 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Object Independant "Set Material color"
« Reply #1 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

pietwelve

  • Junior Playmaker
  • **
  • Posts: 70
Re: Object Independant "Set Material color"
« Reply #2 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

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Object Independant "Set Material color"
« Reply #3 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