Depending on the system size, most UPS units will work ok with a stand alone generator.
Some things I have run into,
Some UPS manufacturers have dual setpoints for "on grid" and "island". As pointed out above, utility systems have very good frequency control, and most UPS's go to battery on a very small variation, if you have a generator with a droop governor, and the frequency drops, the UPS will go to battery and not unitl the batteries run out. A UPS with adjustable parameters for voltage and frequency tolerence is usually desirable.
Some UPS units have power factor correction capacitors and when lightly loaded have a large leading power factor, which can cause a generator to lose voltage control and on newer generators cause a shutdown due to an apparent loss of excitation or overvoltage condition.
I have run into a few UPS system with pretty bad harmonic distortion, and have seen both high and low generator voltage as a result depending on how the AVR measures the voltage, other loads, and how robust the excitation system is.
About 80% of the generators going into standby service in our area have a large part of their load as UPS systems.
Some possible recommendations,
Three phase sensing AVR, some of the newer digital regulators do a pretty good job, but the AVR that has never let me down is the Basler SRR (just a tad bit expensive these days)
Permanent magnet or seperate winding excitation power system (like AREP)
Make sure genset manufacturer controls have ability to compensate or disable protections that may cause nuisence trips due to low power factor or high harmonic loads. I recently have been involved with some CAT and Cummins units that the "factory default" protection levels for reverse VAR's or large leading power factor couldn't be disabled and the system have required some other changes to be operated.
Power factor correction capacitors in UPS's should have ability to be bypassed or disabled while on generator power.
EGSA (Electrical Generating Systems Association) has some good guidelines if you need more information.