public UIFloatModifierWindow(EffectFloatModifier mod, bool show) : base((EffectModifier)mod, show) { floatMod = mod; floatName = floatMod.floatName; floatNames = MaterialUtils.FindValidShaderProperties(floatMod.GetMaterial(), WaterfallMaterialPropertyType.Float).ToArray(); GenerateCurveThumbs(mod); }
public UIColorModifierWindow(EffectColorModifier mod, bool show) : base((EffectModifier)mod, show) { colorMod = mod; colorName = colorMod.colorName; colorNames = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray(); GenerateCurveThumbs(mod); }
public UIFloatModifierWindow(EffectFloatModifier mod, bool show) : base((EffectModifier)mod, show) { floatMod = mod; floatNames = MaterialUtils.FindValidShaderProperties(floatMod.GetMaterial(), WaterfallMaterialPropertyType.Float).ToArray(); floatIndex = floatNames.ToList().FindIndex(x => x == floatMod.floatName); floatCurveFunction = new CurveUpdateFunction(UpdateFloatCurve); GenerateCurveThumbs(mod); }
public UIColorFromLightModifierWindow(EffectColorFromLightModifier mod, bool show) : base((EffectModifier)mod, show) { colorMod = mod; colorNames = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray(); colorIndex = colorNames.ToList().FindIndex(x => x == colorMod.colorName); lightNames = colorMod.parentEffect.parentModule.GetComponentsInChildren <Light>().Select(x => x.transform.name).ToArray(); lightIndex = lightNames.ToList().FindIndex(x => x == colorMod.lightTransformName); }
public UIColorModifierWindow(EffectColorModifier mod, bool show) : base((EffectModifier)mod, show) { colorMod = mod; colorName = colorMod.colorName; colorNames = MaterialUtils.FindValidShaderProperties(colorMod.GetMaterial(), WaterfallMaterialPropertyType.Color).ToArray(); colorIndex = colorNames.ToList().FindIndex(x => x == colorMod.colorName); rCurveFunction = new CurveUpdateFunction(UpdateRedCurve); gCurveFunction = new CurveUpdateFunction(UpdateGreenCurve); bCurveFunction = new CurveUpdateFunction(UpdateBlueCurve); aCurveFunction = new CurveUpdateFunction(UpdateAlphaCurve); GenerateCurveThumbs(mod); }