Playmaker Forum
PlayMaker Updates & Downloads => Share New Actions => Topic started by: jeanfabre on January 31, 2012, 05:03:26 AM
-
Hi,
following a forum request:http://hutonggames.com/playmakerforum/index.php?topic=1028.0 (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 (https://hutonggames.fogbugz.com/default.asp?W1181) or below
SetMaterialColorToAllChildren (https://github.com/jeanfabre/PlayMakerCustomActions_U4/blob/b1d25c98ed906de33288617a7aca14d14fd7ef0a/Assets/PlayMaker%20Custom%20Actions/Material/SetMaterialColorToChildren.cs)
Bye,
Jean
-
Hi, 2015 here.
Was wondering if it'd be possible to update this fine action in due time.
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.
-
Hi, future here. :D
Unity automatically updates the code if you let it but here is the updated code as well.
-
Hi,
present here :o
the action is now available on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)
-
Hi,
Thanks Guys for updating and all! I made a tweet (https://twitter.com/JeanAtPlayMaker/status/636048838244073472) 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
-
You guys are the best!
-
Hi,
Thanks Guys for updating and all! I made a tweet (https://twitter.com/JeanAtPlayMaker/status/636048838244073472) 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.