Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Universal RP v.12.1.1 C# issue. Upgrade to 2021.2.4f1: error CS1525: Invalid expression term ')'

Discussion in 'Scripting' started by Sky_Candy, Nov 28, 2021.

  1. Sky_Candy

    Sky_Candy

    Joined:
    Sep 30, 2021
    Posts:
    3
    Error in the console:

    Library/PackageCache/com.unity.render-pipelines.universal@12.1.1/Editor/UniversalRenderPipelineAsset/UniversalRenderPipelineAssetUI.Drawers.cs(110,138): error CS1525: Invalid expression term ')'
    Screen Shot 2021-11-27 at 11.34.26 PM.png
    Suspect C# script: Screen Shot 2021-11-27 at 11.52.42 PM.png

    I think it needs to be changed to: Screen Shot 2021-11-27 at 11.54.54 PM.png
    1) moving the comma
    ,
    from the beginning of line 110 to the end of line 108
    2) indenting the
    );
    to match with the code block starting on line 103

    It invalidates and reverts to the flawed code if I save.
     
  2. Sky_Candy

    Sky_Candy

    Joined:
    Sep 30, 2021
    Posts:
    3
    Simple solution removed
     error CS1525: Invalid expression term ')'
    issue:

    >Package Manager
    >>Drop down (top left) Unity Registry
    >>>Adaptive Performance
    >>>>Remove

    I then made sure the URPs were both selected in
    >Edit
    >>Project Settings
    >>>Graphics
    >>>>Scriptable Render Pipeline Settings (select URP )
    AND
    >>>Quality
    >>>>Render Pipeline Asset (select same URP as above)