Search Issue Tracker

Fixed in 13.x.x



Found in [Package]

12.0.0, 13.0.0

Issue ID




URP package throws compilation error CS1525 when imported together with Adaptive Performance package

Package: Scriptable Render Pipeline Universal


Steps to reproduce:
1. Create a new project
2. Open Window -> Package Manager
3. Import "Universal RP" package
4. Import "Adaptive Performance" package or "Mobile" packages

Expected result: Packages are compatible with each other
Actual result: Compilation error thrown in com.unity.render-pipelines.universal package
Library/PackageCache/com.unity.render-pipelines.universal@13.0.0/Editor/UniversalRenderPipelineAsset/UniversalRenderPipelineAssetUI.Drawers.cs(109,138): error CS1525: Invalid expression term ')'
Library/PackageCache/com.unity.render-pipelines.universal@12.0.0/Editor/UniversalRenderPipelineAsset/UniversalRenderPipelineAssetUI.Drawers.cs(109,138): error CS1525: Invalid expression term ')'

Reproduced with: 2022.1.0a11(13.0.0), 2021.2.0b14 (12.0.0)
Didn't reproduce with: 2022.1.0a10(13.0.0), 2021.2.0b13 (12.0.0), 2021.1.23f1 (11.0.0), 2020.3.19f1 (10.6.0), 2019.4.31f1 (7.7.1)

Comments (4)

  1. jamestiotio

    Nov 09, 2021 14:13

    This PR seems to fix this issue:

    Until the URP core package is updated with the fix, your best alternative is to modify the script yourself (since core packages are immutable).

    Some helpful links to do this:

  2. corb555

    Nov 07, 2021 18:17

    When I edit the script to fix Unity's errors, I get this "The package cache was invalidated and rebuilt because the following immutable asset(s) were unexpectedly altered:

    How do I update a Unity script and not have it overwritten?

  3. Eckster

    Nov 05, 2021 17:07

    There's a trailing comma in the parameter list in multiple places here.

  4. leegoon73

    Oct 21, 2021 10:31

    Still not a fixed this issues.
    but you can take fixing by your self via correct refer code.

    I think you has met to some two wrong code block.
    line 110
    CED.Group(DrawAdvance)) to CED.Group(DrawAdaptivePerformance))

    line 475
    EditorGUILayout.PropertyField(m_UseAdaptivePerformance, Styles.useAdaptivePerformance); to
    EditorGUILayout.PropertyField(serialized.useAdaptivePerformance, Styles.useAdaptivePerformance);

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.