i added two "ColorCorrectionCurves" effect on camera; how turn on/off each one separately in j Script ?!
i tried GameObject.GetComponent("ColorCorrectionCurves").enabled; but it can turn on/off just on off the ColorCorrection effect added, but i want to control each on separately;
i also tried to create a same copy of ColorCorrectionCurves.js with ColorCorrectionCurves1.js with change name in ColorCorrectionCurvesEditor1.js and even i changed variable name in both script! but the new ColorCorrectionCurves1.js when added, just turned black the screen; most bug report is this : *
i hope and rather a clear and cool solution :)) without changing script and variables names; but if there is not, also please help me.
specially thanks to every reader
Normally you would either name them differently, or use Tags (different ones) and find by tag. If they have different parents (or other ancestors), you could find the ancestors by name with a path as described here: http://docs.unity3d.com/Documentation/ScriptReference/GameObject.Find.html
answered Aug 01 '12 at 12:09 AM