Search Unity

Dynamically change a dessaturate Effect script value

Discussion in 'Scripting' started by yls, Nov 30, 2013.

  1. yls

    yls

    Joined:
    Apr 13, 2012
    Posts:
    197
    Hi,

    I have a DessaturateEffect on my camera. It's work perfectly fine. I can change chnage the value trought the inspector while playing.

    But I would like to dynamically change the Intensity value thought a script. But it seems that I can reach it with a getComponent. Is it a normal limitation ?

    Best regards,

    Yls