Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TIGGYsmalls on May 07, 2013, 04:59:18 PM

Title: Set Property for Materials extra options.
Post 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?
Title: Re: Set Property for Materials extra options.
Post by: jeanfabre on May 08, 2013, 01:06:19 AM
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
Title: Re: Set Property for Materials extra options.
Post by: TIGGYsmalls on May 08, 2013, 06:57:52 AM
Thank you.

It's just _Illum though.
Title: Re: Set Property for Materials extra options.
Post by: jeanfabre on May 09, 2013, 02:16:50 AM
Hi,

 cool, thanks for the correction, I edited the post.

bye,

 Jean