Skip to main content
Up and Coming
May 14, 2014

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 :?
    This topic has been closed for replies.

    2 replies

    Inspiring
    May 14, 2014
    Unity 4.2.0 is the minimum version supported. You should update Unity.
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    May 14, 2014
    Aaah, okay, thanks :D