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
- LOD Group Component Meshes do not change when the Scene view is closed
- Containers' height doesn't expand when text wraps
- Variable is set to a different value from the selected enum value in the Editor dropdown
- TreeView Child display toggle styling becomes reversed when clicking and dragging it
- Null is returned when using FocusOutEvent.relatedTarget
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