Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: TIGGYsmalls on May 07, 2013, 04:59:18 PM
-
I have a Self-Illume Diffuse material and I want to animate the offset.
But! I can only animate the main texture and not the Illume texture because that option isn't in the set properties drop down.
Or am I doing it wrong again?
-
Hi,
you need to use the action "SetTextureOffset" cause Unity api only expose the main texture as a built feature of shaders.
the name you need to put for the named texture is "_Illumin"
http://docs.unity3d.com/Documentation/ScriptReference/Material.SetTextureOffset.html
bye,
Jean
-
Thank you.
It's just _Illum though.
-
Hi,
cool, thanks for the correction, I edited the post.
bye,
Jean