Quit a four-year university, started at a CCC then transfer to UC

Also, I heard that some UCs, such as UCB doesn’t weigh much on your previous coursework taken at that four-year university, while some UCs, such as UCI, weighing pretty much on your GPA attained at the previous four-year university. Is that true? ?