Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ptrlo on October 16, 2014, 12:34:06 AM
-
http://forum.unity3d.com/threads/changing-sprite-during-run-time.211817/
Like so, only in playmaker. Let's say I have 10 sprites and I want to trigger their swaps in playmaker. How do I go about doing that?
-
Hi,
There is a custom action for this:
http://hutonggames.com/playmakerforum/index.php?topic=7797.msg37521#msg37521
Bye,
Jean
-
How do I add that playmaker script?
-
Hi,
The easiest solution is to use the Ecosystem browser (https://hutonggames.fogbugz.com/default.asp?W1181), it's an editor window, that lets you search for custom actions, and you can in one click have them downloaded and installed for you in your project.
otherwise, in this case, create a c# script in your assets browse ( in the Create button), name that script SwapSingleSprite ( the same name as the class), and then in that script, replace everything with the content of that thread code snippet.
Bye,
Jean
-
Thanks! That sounds very handy!