Skip to main content
New Participant
August 27, 2021

Cannot build for UWP platform, if Oculus Integration v31.0 is included in project

Hello,

 

We are using MRTK with Oculus integration to build both for HL2 and OQ2 platforms, but latest Oculus integration prevents building. Following error is reported in Unity:

 

Assets\Plugins\Oculus\SampleFramework\Usage\Passthrough\Scripts\EnableUnpremultipliedAlpha.cs(15,20): error CS0117: 'OVRManager' does not contain a definition for 'eyeFovPremultipliedAlphaModeEnabled'

 

Inspection of code reveals that "OVRManager.eyeFovPremultipliedAlphaModeEnabled" is wrapped in "#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN || UNITY_ANDROID" region. "EnableUnpremultipliedAlpha.Start" method should either use the same pre-processor code or "OVRManager.eyeFovPremultipliedAlphaModeEnabled" should be outside of it. 

    This topic has been closed for replies.