Forum Discussion
marcosource
11 years agoHonored Guest
OVR sdk 0.3.1 unity 4.1 errors
I've been getting errors when I add the new OVR integration package for unity.
First I get the error about antialiasing:
Assets/OVR/Scripts/OVRCamera.cs(116,30): error CS1061: Type `UnityEngine.RenderTexture' does not contain a definition for `antiAliasing' and no extension method `antiAliasing' of type `UnityEngine.RenderTexture' could be found (are you missing a using directive or an assembly reference?)
On a post somewhere on this forum it says to just comment out that line, that's fine, but then I get another error about Undo:
Assets/OVR/Editor/OVRCameraControllerEditor.cs(62,22): error CS0117: `UnityEditor.Undo' does not contain a definition for `RecordObject'
comment that out, then another error:
Assets/OVR/Editor/OVRPlayerControllerEditor.cs(60,22): error CS0117: `UnityEditor.Undo' does not contain a definition for `RecordObject'
comment this out to.
Okay, now there are no errors... but there is no image when i test on a simple default terrain with the OVRPlayerController prefab on it.
I see the model move around when I move the hmd, but there is only a black image.
When i hit space, I can see in the editor that the built-in ovr "menu" pops up, but again, no show in the game window, or oculus output :(
I'm guessing I'm doing something wrong, just can't figure out what :?
First I get the error about antialiasing:
Assets/OVR/Scripts/OVRCamera.cs(116,30): error CS1061: Type `UnityEngine.RenderTexture' does not contain a definition for `antiAliasing' and no extension method `antiAliasing' of type `UnityEngine.RenderTexture' could be found (are you missing a using directive or an assembly reference?)
On a post somewhere on this forum it says to just comment out that line, that's fine, but then I get another error about Undo:
Assets/OVR/Editor/OVRCameraControllerEditor.cs(62,22): error CS0117: `UnityEditor.Undo' does not contain a definition for `RecordObject'
comment that out, then another error:
Assets/OVR/Editor/OVRPlayerControllerEditor.cs(60,22): error CS0117: `UnityEditor.Undo' does not contain a definition for `RecordObject'
comment this out to.
Okay, now there are no errors... but there is no image when i test on a simple default terrain with the OVRPlayerController prefab on it.
I see the model move around when I move the hmd, but there is only a black image.
When i hit space, I can see in the editor that the built-in ovr "menu" pops up, but again, no show in the game window, or oculus output :(
I'm guessing I'm doing something wrong, just can't figure out what :?
2 Replies
Replies have been turned off for this discussion
- cyberealityGrand ChampionUnity 4.2.0 is the minimum version supported. You should update Unity.
- marcosourceHonored GuestAaah, okay, thanks :D
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
- 1 year ago