playMaker

Author Topic: Adjusting custom shader parameters  (Read 2390 times)

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
Adjusting custom shader parameters
« on: April 09, 2016, 03:16:44 PM »
I currently have the gradient shader pack- https://www.assetstore.unity3d.com/en/#!/content/9403

I am trying to figure out how to adjust the settings within it using playmaker. I think it might be set material or something, but that only adjusts the First Color. I am not sure how to adjust the Second Color or other parameters. I attached a pick of the shader.

thx!

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Adjusting custom shader parameters
« Reply #1 on: April 12, 2016, 02:09:59 AM »
Hi,

In the actions window under materials you have the actions for offsetting the textures and also the scale. This could change the values in the UV offset and scale that you have in your screenshot.

I don't have the package you bought so unfortunately I can't test it.

One trick that always works for me and will give you access to any of the properties you are trying to change is using the set and get property action. Simply drag and drop the material from the gameobject into the variable and you are good to go.

- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
Re: Adjusting custom shader parameters
« Reply #2 on: April 12, 2016, 09:34:20 AM »
yea. i tried the get/set property action, and I didn't see any properties that matched the custom shader. I thought maybe I couldn't do that with a shader.

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Adjusting custom shader parameters
« Reply #3 on: April 13, 2016, 03:01:24 AM »
Hey dude,

Rather than type out the answer I found, I made a video to show you:

https://www.youtube.com/watch?v=M-w9TaL7vIU&feature=youtu.be

This should hopefully work for you.
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
Re: Adjusting custom shader parameters
« Reply #4 on: April 22, 2016, 05:19:43 PM »
This is great! I am going to try this weekend.

laynardo

  • Junior Playmaker
  • **
  • Posts: 54
Re: Adjusting custom shader parameters
« Reply #5 on: April 23, 2016, 01:06:09 PM »
It all works! thanks for the video. I hope it's helpful to everyone.