Check out the following tutorial as it does what you want but in a way that will work on almost any VR device and platform.
https://docs.unrealengine.com/latest/INT/Platforms/VR/StereoPanoramicCapture/
Check out the following tutorial as it does what you want but in a way that will work on almost any VR device and platform.
https://docs.unrealengine.com/latest/INT/Platforms/VR/StereoPanoramicCapture/