Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: nepomuk on July 12, 2015, 03:24:09 AM

Title: setting the variable of a shader
Post by: nepomuk on July 12, 2015, 03:24:09 AM
hi, i'd like to figure out how to change variables that are not set in the fsm..
i'm pretty new to scripting so i don't know how to write a custom action.

what i would like to do:

i have a asset installed called vaccumshaders and i would like to change a variable.
for example... it's set in the texture shader as VacuumShaders/Adjustments/Diffuse/Hue

is there an easy way i can access and change the variable from a FSM

thanks in advance :)
Title: Re: setting the variable of a shader
Post by: DarkSoul on July 12, 2015, 07:52:24 AM
Hello ,

You can drag and drop that component into playmaker and use Set Property .

I hope this helps.
Title: Re: setting the variable of a shader
Post by: nepomuk on July 12, 2015, 10:53:08 AM
i tried it, but there is no way to choose the "hue" property which i want to change..
Title: Re: setting the variable of a shader
Post by: nepomuk on July 13, 2015, 03:44:07 PM
sorry for the doublepost...
i found out that i have to make the hue variable public.. but where do i have to do this? in the shader script?
Title: Re: setting the variable of a shader
Post by: DarkSoul on July 13, 2015, 04:54:06 PM
Hello,

Yhea I guess , but it is on the inspector it has to be public [maybe because it is a custom inspector]
Anyway, if you cant read a script and find out how , send it to me .