Forum Discussion

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

Script Errors - Parameter specifiers are not permitted

Hello,
I am continuing to run into the same compiler errors after I build certain scripts.

Errors as follows:
OVRCommon.cs(95,65): error CS0241: Default parameter specifiers are not permitted
OVRCommon.cs(110,69): error CS0241: Default parameter specifiers are not permitted
OVRCommon.cs(128,60): error CS0241: Default parameter specifiers are not permitted
OVRDisplay.cs(175,51): error CS0241: Default parameter specifiers are not permitted
OVRDisplay.cs(636,90): error CS0241: Default parameter specifiers are not permitted
OVRTracker.cs(134,47): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1451,105): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1523,56): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1539,84): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1591,49): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1891,60): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1908,57): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1925,63): error CS0241: Default parameter specifiers are not permitted
OvrCapi.cs(1967,66): error CS0241: Default parameter specifiers are not permitted
(All scripts are located in the unity integration package)

This has mainly occurred when building custom Shaders (to handle transparent backgrounds in movies clips), but now even in more basic scripts. If I remove the shader/other script the errors are resolved.

Does anyone know know the cause or solution to this? I am not modifying the scripts that produce the errors.

Thanks
Trevor

3 Replies

Replies have been turned off for this discussion
  • M_Moors's avatar
    M_Moors
    Honored Guest
    I get the exact same errors, fresh Unity 5.0.1f1 Personal with MonoDevelop 4.0.1

    I tried deleting and reimporting all the scripts, nothing helped.
  • The error messages are most likely coming from MonoDevelop or Visual Studio 2010 or older. That has nothing to do with Unity's C# compiler and the errors should not be present there. You just need to play (or build) the project from within Unity and not the coding IDE.
  • M_Moors's avatar
    M_Moors
    Honored Guest
    i got rid of the problem by deleting the file /Assets/Editor/Image Effects/CameraMotionBlurEditor.js for some reason...