Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: ehsan.amiri on February 20, 2016, 10:22:37 AM
-
Hello
I Have question and i hope you help me with this one
So i have a Gameobject
and i want to get it's Material name
for example if it's red then i want to add "Red" Tag to it
-
On the Ecosystem, there's an action called "Material Compare" which should do what you need.
Get the material on the object and store the variable. Use the Material Compare action to compare it against the red material.
Alternatively, use the "Get Property" action on the material component of the object, and store it's name as a string.