- Home /
Question by
Kennyist · Jan 22, 2014 at 04:38 PM ·
c#post-process-effectimage-effects
c#, how to access Depth Of Field 34
(Unity 4.3.2)
I'm having issues trying to access the depth of field image effect from scripts, It doesn't come up in the auto-finish under any variant of the name, also this comes up with an error:
camera.GetComponent<DepthOfField34>(). // no methods found
Comment
Answer by MarkD · Jan 22, 2014 at 04:48 PM
Do you have unity pro? Check if you refer to the direct camera, else create a var, drag your camera with the script in it and access it trough that variable.
Yes I am on pro, I have tried this but there is no Cast for the image effect either.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Flip over an object (smooth transition) 3 Answers
Creating Chalk-drawing Post Processing 0 Answers
How to manipulate PostProcessing effects settings during execution with c#? 1 Answer