Forum Discussion
mar4enkoev
10 years agoHonored Guest
Unity 5.1.0f3 and Unity 4 Integration V0.6.0.0-beta
I installed the latest version of Unity. Create the empty project with Unity 4 Integration. Updated Runtime. But there was a error:
"
Assets/OVR/Editor/OVRShimLoader.cs(56,32): error CS0117: `UnityEditor.PlayerSettings' does not contain a definition for `d3d11ForceExclusiveMode'
"
How to solve the problem?
"
Assets/OVR/Editor/OVRShimLoader.cs(56,32): error CS0117: `UnityEditor.PlayerSettings' does not contain a definition for `d3d11ForceExclusiveMode'
"
How to solve the problem?
11 Replies
Replies have been turned off for this discussion
- AnonymousSame problem on Unity 5.1.0p1
- AnetteHonored GuestIt might not be the right solution, but in the OVRShimLoader.cs commenting out the Unity 5 part removes the error:
//#if (UNITY_5_0)
// PlayerSettings.d3d11FullscreenMode =
// (OVRUnityVersionChecker.hasD3D11ExclusiveModeSupport) ? D3D11FullscreenMode.ExclusiveMode : D3D11FullscreenMode.FullscreenWindow;
//#else
// PlayerSettings.d3d11ForceExclusiveMode = OVRUnityVersionChecker.hasD3D11ExclusiveModeSupport;
//#endif - jabaHonored GuestRather than commenting it out, why not also check for Unty 5.1? I tried this, and it seems to work:
#if (UNITY_5_1 || UNITY_5_0) - philedayMemberI'm also getting this error. To check if it was an update issue I created a new project and imported the Oculus Package and got the error straight away. So it does happen on a clean Unity3d 5.1.0f3 project.
- haoxiucai001Honored Guest
"jaba" wrote:
Rather than commenting it out, why not also check for Unty 5.1? I tried this, and it seems to work:
#if (UNITY_5_1 || UNITY_5_0)
i am try but unity Send error report
http://pan.baidu.com/s/1ntKKgHF - jayseaCODEHonored GuestI can confirm that jaba is right. It worked for me too. I am using Unity 5.1.0f3 32-bit
- cyberealityGrand ChampionSorry about this. It will be fixed soon. For now, you'll just have to edit the code as shown by jaba.
- viciousesqueHonored Guest
"jaba" wrote:
Rather than commenting it out, why not also check for Unty 5.1? I tried this, and it seems to work:
#if (UNITY_5_1 || UNITY_5_0)
thanks, jaba. {00} - slinkenaugerHonored GuestThanks Jaba; worked for me too.
- MikeV3DHonored GuestI just recently started getting this error message in Unity in my VR project. Where exactly do I add the code:
#if (UNITY_5_1 || UNITY_5_0) ?
Any help is much appreciated.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 6 years ago
- 6 years ago