How to reproduce:
1. Extract and open the attached “IN-135670.zip“ project
2. Open the Assets/Scenes/SampleScene.unity scene
3. Right-click on the “Game“ tab
4. Click on “Load RenderDoc”
5. Select the “TestObject” GameObject in the Hierarchy
6. Navigate to the Inspector tab
7. Enable the “This Works (Script)“ component
8. Disable the “This Does Not Work (Script)“ component
9. Enter Play mode
10. In the Game View, click on the Camera icon
11. Open the RenderDoc application
12. In the “Event Browser”, search for "CopySubresourceRegion(_BackgroundTexture, WorldRenderTarget)" (Make sure to paste it in with the quotes)
13. Expand all the collapsed entries until you find "CopySubresourceRegion(_BackgroundTexture, WorldRenderTarget)" and select it
14. In the “API Inspector”, expand all the entries
15. Observe the “pSrcBox” values
16. Navigate back to Unity Editor
17. Disable the “This Works (Script)“ component
18. Enable the “This Does Not Work (Script)“ component
19. Repeat steps 9-15
Actual result: “pSrcBox” “right” value is blank, and “top“ value is not
Expected result: “pSrcBox” “top“ value is blank, and “right“ is not
Reproducible with: 6000.0.64f1, 6000.0.70f1, 6000.3.10f1, 6000.4.0b11, 6000.5.0a8
Not reproducible with: 6000.0.63f1
Reproducible on: Windows 11
Could not reproduce on: No other environment tested
Note: No entry for “CopySubresourceRegion(_BackgroundTexture, WorldRenderTarget)“ in other Graphics APIs