Skip to main content
Up and Coming
April 2, 2015

OVRUnityVersionChecker.cs(3,3): Error CS0188:

Unity version 5.0.0f4 personal
Total noob question, imported OculusUnityIntegration.unitypackage into my unity project when I compile the scripts I get the following error:

OVRUnityVersionChecker.cs(3,3): Error CS0188: The 'this' object cannot be used before all of its fields are assigned to (CS0188) (Assembly-CSharp)

:? :roll: :)
    This topic has been closed for replies.

    2 replies

    Inspiring
    April 2, 2015
    I replied on the other topic you created. Basically you should not build inside MonoDevelop, only in the Unity editor.
    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
    Participant
    April 3, 2015
    Hey y'all,
    Unfortunately if you want to use Visual Studio to debug it does it's own build and therefore fails to attach itself to Unity to debug with.

    You can fix those errors however by adding a
    : this()
    to the end of both constructor declarations in that class (line 91 and 138).