playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Download the
Ecosystem Browser
to find new actions, samples. etc.
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
setting the variable of a shader
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: setting the variable of a shader (Read 2905 times)
nepomuk
Playmaker Newbie
Posts: 32
setting the variable of a shader
«
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
Logged
DarkSoul
Playmaker Newbie
Posts: 37
Re: setting the variable of a shader
«
Reply #1 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.
Logged
nepomuk
Playmaker Newbie
Posts: 32
Re: setting the variable of a shader
«
Reply #2 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..
Logged
nepomuk
Playmaker Newbie
Posts: 32
Re: setting the variable of a shader
«
Reply #3 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?
Logged
DarkSoul
Playmaker Newbie
Posts: 37
Re: setting the variable of a shader
«
Reply #4 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 .
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
»
setting the variable of a shader