I'm making a turn-based two-player game and have a Prefab which is used as the template for both player's pieces. The GameObject instances, generated from the prefab, determine at run-time if they're owned by player 1 or player 2 and set their Material Color accordingly. I would like to write an FSM on the Prefab that can fade the player piece from its player color to invisible, but I haven't been able to think of a good approach to achieve that.
My first thought was to store the Material Color in a Color variable and then animate its alpha channel using the Animate Color action. However, I can't find an action that allows me to get a Material's Color (only to set it).
Is there another approach to achieve a prefab-based "fade to invisible" using PlayMaker?