I know, “learn both languages,” “stick to one language per project,” etc. I bought a nice shader package that, so far, does everything I need it to. I just struggle making all my JS scripts play nicely with the author’s C# script. He has a boolean “DrawOutline” in his script, which I need to be able to turn on and off in one of my JS scripts. I’ve got them in the right folders so that there aren’t any missing namespace errors, but when I try this:
var outlineGlowRenderer = gameObject.GetComponent(OutlineGlowRenderer);
… I get a null reference exception, and the script can’t be accessed. I also tried a few different variations of this, including removing “gameObject,” adding .DrawOutline after the GetComponent(), etc, and still just null refs. I suspect it’s some kind of JS/C# mess, which would be unfortunate, but getting this to work would conclude one of the biggest hurdles in this project so far. Any help would be awesome!!