|
I want to use the Unity Compound control example at the top here: file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/Components/gui-Extending.html (Which needs a curly bracket in it by the way) to control the opacity of a shader. Can anyone point me in the right direction? Thanks.
(comments are locked)
|
|
It's pretty easy:
I realize this sets the color of the shader every frame, so it's not completely efficient, but I figure I'll leave the optimization up to you. :P Thank you for that but I'm afraid it doesn't work. Doesn't even generate a slider, and there are a whole raft of errors in the console. Thanks anyway.
Jun 09 '10 at 01:59 PM
Davies
The script is in C#, and you need to create your own class header. This isn't a full script. I assumed you knew how to script so I gave you a partial script.
Jun 09 '10 at 09:46 PM
qJake
(comments are locked)
|

So you want to create an editor gui or are your referring to in game.
I've made a slider using the example from Unities docs. What I want to do is have it control the opacity of an alpha channel in a transparent shader. Thanks.