fail to bulid exe,came out error CS0117

I try to build with unity 5.1.2 and oculus PC Legacy Integration V0.6.0.2
but failed and it was saying:
Assets/OVR/Scripts/OVRCameraRig.cs(148,48): error CS0117: OVRPlugin' does not contain a definition for virtualTextureScale’
after “build”

Have someone meet this before? I want some help

1 Like

@dxs even i am facing the same problem. did u find any solution??

In the OVRCameraRig script, there might be a

#if UNITY_5.0
//... do something
#else
//... do something else
#endif

It should be running through the 5.0 code, so you can remove the code in the #else and remove the Preprocessor definte altogether. Since the version you are using 5.1, the define is running through the else code, but the code in the else is obsolete