Want to leave my 4-year to go to CC before I transfer to a different 4-year. Is this a bad idea?

I am currently at a private top-50 school in the midwest. I am extremely unhappy here and want to go to a CC near my home in CA after this semester, while I apply to some public universities closer to home. Will doing this hurt my chances of getting into the new school? I am applying to many of the UCs.