Hi, ha that's exactly why we made VIU available. It's exactly as the code you described and with the prefabs even easier. Also you can target openvr, oculus runtime, daydream, wave, windows mr and more with the same code.
And in addition to the asset store, it's open sourced on GitHub:
... View more