- Home /
Question by
smirlianos · Dec 24, 2012 at 05:46 PM ·
camerajavascriptcomponentfilter
Enable/disable camera filters
Hi!
How can I make the camera to apply any effect(I have Unity Pro) when I press a button and then when I press another one, remove it? In simple words, how can I enabl/disable a component of a camera?
Thanks in advance!
Comment
Best Answer
Answer by aagrlp640 · Dec 09, 2013 at 03:45 PM
With this code
this.GetComponent().enabled = true; this.GetComponent().enabled = false;
Hope this help someone else
Your answer
