void DoPatch440(EffectLayer layer) { if (layer.IsRandomStartColor) { XEditorTool.PatchColorGradient(layer.RandomColorParam, layer.RandomColorGradient); } if (layer.ColorChangeType == COLOR_CHANGE_TYPE.Gradient) { XEditorTool.PatchColorGradient(layer.ColorParam, layer.ColorGradient); } }
public static void DoPatch(EffectLayer layer) { Debug.Log("patching for effect layer:" + GetPath(layer.transform)); if (layer.IsRandomStartColor) { XEditorTool.PatchColorGradient(layer.RandomColorParam, layer.RandomColorGradient); } if (layer.ColorChangeType == COLOR_CHANGE_TYPE.Gradient) { XEditorTool.PatchColorGradient(layer.ColorParam, layer.ColorGradient); } }