Search Issue Tracker
By Design
Votes
0
Found in
5.5.0b7
Issue ID
839408
Regression
No
Compiler error CS0122 when using two given A$ packages
1. What happened
Importing 'Unistorm' and 'AQUAS Water/River Set' A$ packages produces error:
"Assets/AQUAS/Scripts/AQUAS_LensEffects.cs(69,5): error CS0122: `UnityStandardAssets.ImageEffects.GlobalFog' is inaccessible due to its protection level"
Using Aquas package on its own or with some other packages reveals no such error.
2. How we can reproduce it using the example you attached
Resulting project is quite large, so not attaching.
Repro with importing 'AQUAS Water/River Set' (https://www.assetstore.unity3d.com/en/#!/content/52103) and 'Unistorm' (https://www.assetstore.unity3d.com/en/#!/content/2714). Import order is important! Importing Unistorm first won't reveal the issue.
Wait for import to be completed and script updated to be run.
Observe the Console.
Error: Assets/AQUAS/Scripts/AQUAS_LensEffects.cs(69,5): error CS0122: `UnityStandardAssets.ImageEffects.GlobalFog' is inaccessible due to its protection level
Same behaviour in 5.4.1p3 (1b587b7935dc)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
Add comment