Search Issue Tracker
Won't Fix
Votes
6
Found in
2021.3.35f1
2022.3.20f1
2023.3.0b9
6000.0.0b11
Issue ID
UUM-64799
Regression
Yes
Changes to MeshRenderer.shadowCastingMode don't take effect immediately when being made in OnPreRender
How to reproduce:
1. Open the user’s attached “prerenderrepro20.zip” project
2. Enter Play Mode
3. Observe the Game view
Expected result: Cube and shadow are visible
Actual result: Cube is not visible
Reproducible with: 2021.3.34f1, 2021.3.35f1, 2022.3.20f1, 2023.3.0a17, 2023.3.0b9
Not reproducible with: 2021.3.33f1, 2023.2.12f1, 2023.3.0a16
Reproduced on: macOS 14.2.1 (Intel)
Not reproducible on: No other environment tested
Notes:
- the issue is not reproducible in the 2023.1 and 2023.2 streams
- issue is reproducible in the Editor and Standalone Player (macOS)
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
This behavior is intentional. For the property to influence interactions between cameras, it needs to be modified within the OnPreCull callback, not the OnPreRender callback. This is because the OnPreRender callback occurs after the camera has completed the culling process. Since this property governs culling, modifying it in OnPreRender is ineffective. Refer to the provided screenshot for more details.