playMaker

Author Topic: Set Property for Materials extra options.  (Read 2510 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Set Property for Materials extra options.
« 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?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Property for Materials extra options.
« Reply #1 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
« Last Edit: May 09, 2013, 02:16:32 AM by jeanfabre »

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: Set Property for Materials extra options.
« Reply #2 on: May 08, 2013, 06:57:52 AM »
Thank you.

It's just _Illum though.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set Property for Materials extra options.
« Reply #3 on: May 09, 2013, 02:16:50 AM »
Hi,

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

bye,

 Jean