If you plan to keep plants, then 3-4 inch substrate is necessary, so it gives the plants an easier time to root themselves
If you use a UGF, it's best to keep it from 1-2 inches, so there is enough flow for the water to flow through the substrate.
Otherwise, it's up to you how deep you want the substrate to cover.