I did this just now. Make sure you have “using UnitySampleAssets.ImageEffects;” at the top and then you can get the components.
In my case:
Camera.main.GetComponent().enabled = false;
EDIT: ah, didn’t see you were using Js. My example is in C#
I’m aware of this, and as you can see I had no trouble importing them into my project.
The problem is how does this change the way they are referenced in the code? Because it doesn’t seem like it should be any different.
oh, my bad. I do that not reading thing sometimes.
I think it’s a compiliation / build order issue, like if you read here:
try taking all the “Sample Assets” and dragging them into a Folder named “Standard Assets”. Make sure the javascript file is in one of the “non-special” folders.
Maybe they didn’t configure the new Sample Assets folder to build in the correct order, or its bugged or something.