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)
Comments (4)
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
- Crash on ResizeScriptingList<ScriptingObjectPtr> when passing an undeclared variable to the results parameter for GameObject.FindGameObjectsWithTag
- [Android] "Screen.safeArea.y" always returns values outside of the Safe Area when the device is in Portrait orientation
- Frame spike due to many TreeRenderer.TreeUpdated calls when repositioning terrains in large Scenes
- Crash on GameObject::RemoveComponentFromGameObjectInternal when reparenting Text GameObjects
- [IL2CPP-GarbageCollector] Changing GCMode might permanently disable GC in a multithreaded context
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);