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
- [Mobile] Developer Console does not appear when an error is thrown
- [HDRP] Game view renders artifacts when Camera's Component "Post Anti-aliasing" is set to "TAA" and Dynamic Resolution's "Forced Screen Percentage" is changed
- A deactivated Prefab's name color becomes white when a GameObject in the scene is deactivated
- The Game view becomes blank when using Frame Debugger with MSAA and Texture binding enabled in Play Mode
- NullReferenceException is thrown when changing the Inspector preview selection
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