Forum Discussion
revisobar
11 years agoHonored Guest
Unity 5 integration - tweak needed in OVR
Hello!
I'm new to both Unity and Oculus but am enjoying the steep (learning) curve!
Quick note - things that built in Unity 4.6 broke in Unity 5.
I got the following error message:
Assets/OVR/Scripts/Util/OVRMainMenu.cs(250,43): error CS0117: `UnityEngine.RenderMode' does not contain a definition for `World'
A quick search revealed the wonderful post (he has definitely sold a book to me - the writer for Manning):
http://rifty-business.blogspot.com/2015 ... ity-4.html
Who notes:
"To get the scene to build, I edited OVRMainMenu.cs and changed:
c.renderMode = RenderMode.World;
to
c.renderMode = RenderMode.WorldSpace;
in the two places where that line occurs."
Worked perfectly for me too...thought I'd share.
Back to work!
:-)
iw
I'm new to both Unity and Oculus but am enjoying the steep (learning) curve!
Quick note - things that built in Unity 4.6 broke in Unity 5.
I got the following error message:
Assets/OVR/Scripts/Util/OVRMainMenu.cs(250,43): error CS0117: `UnityEngine.RenderMode' does not contain a definition for `World'
A quick search revealed the wonderful post (he has definitely sold a book to me - the writer for Manning):
http://rifty-business.blogspot.com/2015 ... ity-4.html
Who notes:
"To get the scene to build, I edited OVRMainMenu.cs and changed:
c.renderMode = RenderMode.World;
to
c.renderMode = RenderMode.WorldSpace;
in the two places where that line occurs."
Worked perfectly for me too...thought I'd share.
Back to work!
:-)
iw
4 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionYep, thanks for sharing.
- KatSeikoHonored GuestWhile I have corrected the items that showed errors in the console, I seem to have further problems: I have games that I made with Unity 4 where the HMD works. When I try using this integration in Unity 5, the HMD screen does not turn on and all game output is displayed on my primary monitor, but it reacts to movements of the HMD. Do you guys have an idea about what I am missing?
- cyberealityGrand ChampionAre you maybe in Direct Mode? Cause that's only supported in Unity 5.1 first-party support.
- KatSeikoHonored GuestHi cybereality, thanks for your input.
Why would anyone remove the support for Direct HMD Access Mode? Or what are you referring to? I'm afraid you have to be a bit more specific as I am still getting used to Unity..
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 months ago
- 6 years ago