Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: jgalvezpa on November 08, 2013, 11:30:00 PM
-
Hello sorry for the newbie question it is my 1st time with shaders, i bought a glow plugin that bring lot of shaders, i want to know how can i apply it in my fsm.
for example i want that when i click an object it start glowing
Thanks
-
Hav you tried using Set Material?
-
Create a material, choose the shader (in the drop down list) and then assign material either beforehand or at runtime with 'set material'.
-
yes but im using 2D sprites with transparency when i apply a shader somethings appear a black or white image in my sprite
-
I'm a noob, but I think that "2D" in Unity is usually a 3D object with a texture/material of a image of a 2D sprite, so when you apply the shader it changes the texture/material and your 2D sprite disappears with it.
I'm guessing it is not really a Playmaker problem, but probably the way the shader was programmed.
-
i want to change the shader of a game object in the fsm, not the material how can i achieve that?
-
Hi,
You simply can't, Unity doesn't work like that. Shaders belongs to materials, so if you want to change a GameObject shader, you have to switch material.
bye,
Jean