Rendering equirectangular HDR map from Blender scene

I’m building a Blender scene with the sole purpose of rendering a skybox for Unreal Engine 4. The skybox needs to be an equirectangular map with HDR. Is there any special type of camera that can be used to achieve this?

use cycles

place the camera at the center ( 0,0,0 )
use panoramic with the “equal area” setting

then set the render size to a power of 2 ( 2048 x 1024 or 4096 x 2048 and so on)

then render and save the scene output