playMaker

Author Topic: Set Material color to all children  (Read 6836 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Set Material color to all children
« on: January 31, 2012, 05:03:26 AM »
Hi,

 following a forum request:http://hutonggames.com/playmakerforum/index.php?topic=1028.0

 Please find an action that allow you to set the material color of a gameObject AND all its children.

You can download it on the Ecosystem or below

SetMaterialColorToAllChildren

Bye,

 Jean
« Last Edit: August 25, 2015, 01:36:43 AM by jeanfabre »

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Set Material color to all children
« Reply #1 on: August 23, 2015, 08:00:47 PM »
Hi, 2015 here.

Was wondering if it'd be possible to update this fine action in due time.

Quote
Assets/Playmaker Actions/SetMaterialColorToChildren.cs(59,52): error CS0619: `UnityEngine.GameObject.renderer' is obsolete: `Property renderer has been deprecated. Use GetComponent<Renderer>() instead. (UnityUpgradable)'

Assets/Playmaker Actions/SetMaterialColorToChildren.cs(59,61): error CS1061: Type `UnityEngine.Component' does not contain a definition for `material' and no extension method `material' of type `UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)

Thanks for considering.

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Set Material color to all children
« Reply #2 on: August 24, 2015, 02:51:50 PM »
Hi, future here. :D

Unity automatically updates the code if you let it but here is the updated code as well.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Set Material color to all children
« Reply #3 on: August 24, 2015, 03:45:15 PM »
Hi,
present here  :o

the action is now available on the EcoSystem

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Material color to all children
« Reply #4 on: August 25, 2015, 01:35:16 AM »
Hi,

 Thanks Guys for updating and all! I made a tweet for it.

You should all update your member infos to feature your tweet username so that I can reference you guys, or even tweet yourself about your contribution, and we'll retweet with pleasure :)


 Bye,

 Jean

Sid

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Set Material color to all children
« Reply #5 on: August 25, 2015, 04:39:41 AM »
You guys are the best!

sebaslive

  • Hero Member
  • *****
  • Posts: 572
    • Frame Tale Studios
Re: Set Material color to all children
« Reply #6 on: August 25, 2015, 11:32:57 AM »
Hi,

 Thanks Guys for updating and all! I made a tweet for it.

You should all update your member infos to feature your tweet username so that I can reference you guys, or even tweet yourself about your contribution, and we'll retweet with pleasure :)


 Bye,

 Jean

Good idea Jean, I don't see a field for twitter but I added it to my sig.
All my VR games use Steam VR Playmaker Toolkit: http://u3d.as/u20
And Oculus Touch Playmaker Toolkit: http://u3d.as/QT5


Follow me @sebasRez