Search Issue Tracker
By Design
Votes
2
Found in
2022.3.58f1
6000.0.39f1
6000.1.0b7
6000.2.0a4
6000.3.0a1
Issue ID
UUM-98375
Regression
No
Shader transparency, discard, and clip are not working when using the Player
Reproduction steps:
1. Open the attached “IN-95148_Shader_Test.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Hover over the red cubes and observe the behavior
5. Build And Run the project (File > Build And Run)
6. Hover over the red cubes and observe the behavior
Expected result: Inside the Player, the cubes start disappearing when the sphere is next to them
Actual result: Inside the Player, the cubes are still present, only opacity is changed
Reproducible with: 2022.3.58f1, 6000.0.39f1, 6000.1.0b7, 6000.2.0a4
Reproducible on: Windows 11 (User’s platform), M1 Max MacOS 15.1.1 (Tested by CQA)
Not reproducible on: No other environment tested
Note:
- The issue is only reproducible in the Player
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
When creating a CustomPass using ShaderGraph, setting the entry point to BeforeRendering prevents proper keyword evaluation.
I resolved this issue by providing users with various suggestions on how to fix it.