Search Issue Tracker

Fixed in 13.x.x

Votes

7

Found in [Package]

12.0.0, 13.0.0

Issue ID

1368161

Regression

Yes

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. 75c7b2a05d809d416ec8efead14e477e?d=mm

    jamestiotio

    Nov 09, 2021 14:13

    This PR seems to fix this issue: https://github.com/Unity-Technologies/Graphics/pull/5820

    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:
    - https://forum.unity.com/threads/how-do-you-change-a-script-in-a-unity-package.1033192/
    - https://www.reddit.com/r/Unity3D/comments/hmbm46/can_i_edit_a_unity_package/

  2. 5acbabf26dc43c925e9f936a4ae66c45?d=mm

    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:
    Packages/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAsset/UniversalRenderPipelineAssetUI.Drawers.cs"

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

  3. C593e65a868ad49a257ac965bf8effac?d=mm

    Eckster

    Nov 05, 2021 17:07

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

  4. 983ef7c111d1d37aea874ba48394bffb?d=mm

    leegoon73

    Oct 21, 2021 10:31

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

    https://github.com/Unity-Technologies/Graphics/blob/master/com.unity.render-pipelines.universal/Editor/UniversalRenderPipelineAsset/UniversalRenderPipelineAssetUI.Drawers.cs

    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.