How is UE4 supported on a VR platform?

When Epic games says there going to add support for UE4 for a Virtual reality platform such as the Oculus Rift, HTC Vive, etc, how do they do it? How do they make it compatible with those systems? In other words, how do VR manufacturers add support for game engines like UE4 for their particular system and particular OS?

Through plug-ins. The plug-in allows projects to be built using the VR tech made by each company and you need to read over the documentation for specifically which VR setup you want to build for as certain settings may vary like eye height for the player controller. I’m not sure if there is a way to make a game fully compatible with all VR devices, one would have to pick one device unless you are rich and have access to test out your game on all VR devices. I have only worked on one project for the Occulus and never worked with the VIve yet so I can’t say for sure.