Like other public universities in Brazil, Unicamp is almost entirely funded by the government, in this particular case of the State of São Paulo.
A problem faced by Unicamp, and other public universities in Brazil, is the high dependency on economic conditions, that directly impact tax earnings, while most of the expenses, payroll specially, are indexed to inflation.