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
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
- Errors “InvalidOperationException: Trying to use a texture (_CameraDepthTexture)...” and “Render Graph Execution error” shown when selecting GameObjects with Mesh Renderer from the Hierarchy
- macOS stutters in a minimal project
- [Usability] HDRP Wizard calls for VR fixes when opening the HDRP Wizard a second time after they have already been applied and the Wizard has finished checking
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.