- Home /
Can't access Depth of Field?
Hey. I have DepthOfFieldScatter attached to my camera. Created a script called which I want to alter the DepthOfFieldScatter at runtime, however I can't find the DepthOfFieldScatter object.
I'm using C#, and when I type:
public DepthOfFieldScatter, nothing comes up. The only thing that appears is the suggestion of DepthTextureMode.
How can I access it?
Are you trying to access the property from the script DepthOfFieldScatter from another script?
Answer by fffMalzbier · May 19, 2014 at 11:04 AM
This post should help: http://answers.unity3d.com/questions/48874/accessing-javascript-variable-from-c-and-vice-vers.html
Answer by Andres-Fernandez · May 19, 2014 at 11:19 AM
Actually, this answer shows a workaround that works perfectly:
http://answers.unity3d.com/questions/613747/how-to-modify-variables-from-scripts-in-standard-p.html