RV generators are what truly make your RV fully self-contained. What a feature, instant electricity at the push of a button. We take electricity for granted in our homes because we don't have to do anything to get it, with the exception of paying our monthly electric bill. This is part of the problem with RV generators, we expect the electricity to be there when we need or want it just like in our house. The problem is this magical source of electricity requires a certain amount of care and maintenance from the owner.
Safety first! Always keep in mind when you use a generator there is carbon monoxide. You should always inspect the exhaust system on the generator set before using it. Do not operate a generator with a damaged exhaust system. If you're using a portable generator set make sure the exhaust is directed away from the camping area. Test your carbon monoxide detector for proper operation prior to using the generator. Never run a generator when you or anyone else is sleeping. Observe campground etiquette. Do not run your generator after quiet hours.
A generator that comes equipped on an RV gets its fuel supply from the same fuel tank the engine uses. When the fuel tank reaches a 1/4 tank of fuel the generator will shut down to prevent you from possibly using all of the fuel without realizing it. The generator will either have an automatic transfer switch to sense whether you are using shore power or the generator, or you will need to plug the RV power cord into a generator receptacle to use the generator. It is perfectly okay to use the generator while you are traveling.
This is one of the reasons you have a generator in the first place. It is actually more fuel efficient to run the generator with the roof mounted air conditioner on, than to use the dash air.