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
- The tag adder functionality does not work if a space is entered instead of a name
- Errors thrown in the Console when configuring In-App Purchases package
- Longer Scaler Profile names go out of the"Scaler Profilers" section
- AI Navigation window UI elements overlap when the AI Navigation window is docked and resized
- Editor freezes after some time when using NavMeshQuery::Raycast
Add comment