Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Skelator's avatar
Skelator
Honored Guest
10 years ago

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: :)

2 Replies

Replies have been turned off for this discussion
  • I replied on the other topic you created. Basically you should not build inside MonoDevelop, only in the Unity editor.
  • 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).