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
- Usage of Adaptive Probe Volumes throws a lot of IndexOutOfRangeException and Assertion Failed errors
- Prefab overrides don't recover missing managed references
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
Add comment