Forum Discussion
Anonymous
11 years agoUnity 5.0.0.f1 - DK2
I was wondering if there's any way to get the OVR Camera or PlayerController to work with Unity BETA 5.0.0.f1? I've tried the tip I've found online, but I still get a bunch of compile errors.
Original tip:
https://forums.oculus.com/viewtopic.php?f=37&t=19999
Compile errors:
http://i.imgur.com/hHlec13.jpg
Original tip:
https://forums.oculus.com/viewtopic.php?f=37&t=19999
Compile errors:
http://i.imgur.com/hHlec13.jpg
2 Replies
Replies have been turned off for this discussion
- standtall007ProtegeYou actually just need to change this:
#if (UNITY_5_0)
// TODO: Unity 5.0b11 has an older version of the new GUI being developed in Unity 4.6.
// Remove this once Unity 5 has a more recent merge of Unity 4.6.
c.renderMode = RenderMode.World;
#else
c.renderMode = RenderMode.WorldSpace;
#endif
c.pixelPerfect = false;
#endif
(starts at line 247 and 960!)
to this (2 times in the OVRMainMenu.cs!):c.renderMode = RenderMode.WorldSpace;
#endif
c.pixelPerfect = false;
then you do get alot of warnings but they don't harm you! Hope this helps...
EDIT! I have just found out that the warnings are easily removed by changing the values recommended!
i.e:r.castShadows = false;
change this to:r.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off;
and the other variables that are in OVRMainMenu.cs just change those that are said to not be used anywhere to public variables instead of private's as they are when importing SDK 0.4.4!
Cheers.
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
- 2 years ago
- 9 months ago
- 11 months ago
- 2 months ago