@MattN. Assuming that you have normalized Haar measure on $G$, the
orthogonality relations tell you that $$\int_G \gamma(g)\,dg = \begin{cases} 1 & \text{if } \gamma = 0 \text{ is the trivial character}\\ 0 & \text{otherwise.}\end{cases}$$ But that integral is nothing but the Fourier transform of the constant function $f(g) = 1$, so $\hat{f}(0) = 1$ and $\hat{f}(\gamma) = 0$ otherwise.