Search Unity

How can I get the Bloom component in my camera?

Discussion in 'Scripting' started by From-Soy-Sauce, Feb 11, 2016.

  1. From-Soy-Sauce

    From-Soy-Sauce

    Joined:
    Jan 7, 2014
    Posts:
    162
    Hello, I have a the Bloom component on my camera, this one: http://docs.unity3d.com/Manual/script-Bloom.html

    But I cannot get the component for it in a script. I've tried "GetComponent<Bloom>()" but it doesn't work.

    Does anyone have any good solutions to this?
     
  2. pixpusher2

    pixpusher2

    Joined:
    Oct 30, 2013
    Posts:
    121
    Gotta add this before accessing the image effect components through script.

    Code (CSharp):
    1. using UnityStandardAssets.ImageEffects;