Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
0
Found in
2021.2
2021.2.12f1
2022.1.0b7
2022.2.0a1
Issue ID
1407597
Regression
Yes
Ambiguous method error when asmdef only targets Editor
Reproduction steps:
1. Open the user's project
Expected result: there are no errors
Actual result: there is an error "error CS0121: The call is ambiguous between the following methods or properties: 'System.ObservableExtensions.Subscribe<T>(System.IObservable<T>, System.Action<T>)' and 'UnitySupport.Plugin.Extensions.Subscribe<T>(System.IObservable<T>, System.Action<T>)'"
Reproducible with: 2021.2.14f1, 2022.1.0b7, 2022.1.0b10, 2022.2.0a1, 2022.2.0a6
Not reproducible with: 2019.4.34f1, 2020.3.30f1, 2022.1.0b6
Workaround:
1. Go to Assets > Editor and press on UnitySupport.Editor.asmdef
2. In the Inspector window under Platforms, note that only the Editor is enabled
3. Enable any runtime platform (e.g. iOS) and press Apply
4. Note that error message goes away
Notes:
- Seems that System.Reactive.Core.dll is automatically referenced if the asmdef targets only the Editor
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a9
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.1f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.3f1