Skip to main content
Participant
October 20, 2015

Type `OVRDisplay' does not contain a definition for `SetView

Hello All,

I am new with Oculus Rift and Unity.
Well I am trying to integrate Oculus Rift(0.7 Runtime and SDK) with Unity 5.2.1f1 version. But I am getting following error message :
Assets/OVR/Editor/OVRGameView.cs(48,52): error CS1061: Type `OVRDisplay' does not contain a definition for `SetViewport' and no extension method `SetViewport' of type `OVRDisplay' could be found (are you missing a using directive or an assembly reference?).

I searched this error everywhere, but not getting anything on it. I need you help guys, if anyone knows the fix for this or any suggestion would be great.

Thanks
    This topic has been closed for replies.

    13 replies

    Up and Coming
    March 7, 2016
    Hi Ju4nl, sorry if you found that bit confusing.

    The section you quoted from the Mobile SDK does provide a link to the "Mobile Setup for Unity and Unreal Developers" section that it mentions. I believe it answers most of your questions - it's here:
    https://developer.oculus.com/documentat ... dev-intro/

    To summarize what's there, most developers can just begin with Unity 5 and our Utilities. You should go through the "Device Setup" section that we describe in our Mobile SDK guide to make sure you can communicate with your phone with adb. But mostly you should focus on our Unity developer guides, and the Unity VR development documentation.

    In our guides for both Unity 4 and Unity 5 development, we do include a simple tutorial for building a basic game and building it for Gear VR or Rift, check out our Unity guides for more information.

    If there's anything else you'd like to see improved or added, please let me know. Thanks!
    New Participant
    June 6, 2016
    any updates to this? running 5.3.4f1. thanks
    Inspiring
    June 7, 2016
    Updates to what? If you're seeing error messages about SetView, you're using an obsolete script. Please delete it. Best to delete the whole OVR folder (and any Oculus plugins from the Plugins folder) and import the latest Utilities.