Lightmap UV creation in Maya

UE4 has a build-in lightmap generator and its pretty sample to use. you can check these tutorials:

https://www.youtube.com/watch?v=-sJsR0y7R8U