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
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)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
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/
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?
Eckster
Nov 05, 2021 17:07
There's a trailing comma in the parameter list in multiple places here.
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);