Skip to main content
New Participant
April 6, 2015

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
    This topic has been closed for replies.

    3 replies

    New Participant
    April 15, 2015
    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.
    Inspiring
    April 15, 2015
    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.
    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
    New Participant
    April 15, 2015
    i got rid of the problem by deleting the file /Assets/Editor/Image Effects/CameraMotionBlurEditor.js for some reason...