- Home /
Calling Vignetting JS shader from C# code
hi guys
I need to access the vignetting/chromatic aberration shader parameters to do some fx stuff at a point in time in my project. The problem is I am writing in C#, but vignetting is written in JS.
I tried some examples from around here, on how to access a JS script from C#, from build execution orders, to using send message, but for some reason no matter what I do, my caller script doesn't see the shader script.
thanks !
Answer by gospod velebrz · Dec 03, 2013 at 05:39 PM
just in case anyone has a similiar problem I fixed the issue by putting my Vignetting script into Standard Assets folder (so one directory higher then it is when you import standard assets) and the calling C# script in Assets.
cheers
Your answer
Follow this Question
Related Questions
Whats wrong with this simple code? 2 Answers
MonoDevelop 4.0.1 code folding 1 Answer
Handheld.PlayFullScreenMovie on iOS not loading video 0 Answers
OnTriggerEnter isn't working 1 Answer
Animating Offset of projector shader 1 Answer