Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2020.3.X, 2021.2.X
Votes
2
Found in
2019.4
2019.4.14f1
2020.3
2021.1
2021.2
2022.1
Issue ID
1358042
Regression
No
Shader compilation error is thrown when #pragma target is set to 3.0 or higher
How to reproduce:
1. Open the attached project "1358042.zip"
2. Select the "TestShader" Shader in the Assets folder
3. In the Inspector press on the Open in Shader Editor button
4. In Rendering Options, turn off LOD Group Cross Fade Option
5. Turn the LOD Group Cross Fade Option on again
6. Save the settings
7. Open the Console
Expected reesult: Warning is not thrown when #pragma target 3.0 is already set in code
Actual result: Even though the target is set to 3.0 or higher the warning is thrown
Reproducible with: 2019.4.29f1, 2020.3.17f1, 2021.1.18f1, 2021.2.0b9, 2022.1.0a5
Note:
* 2021.2 and 2022.1 streams show the error in the Inspector when selecting the shader
* Warning thrown: "Automatically setting target of LOD_FADE_CROSSFADE to 3.0"
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
- [Android] [iOS] Sprites used as image objects in Canvas render as rectangles in Player
- [MacOS] Crash on [NSApplication endModalSession:] when saving while Play Mode is loading
- Importing a theme through the Inspector allows importing the same theme multiple times
- Editor window disappears when repositioned in a specific way in Editor
- Importing a theme through the Inspector allows circular import
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b1
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.9f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.27f1