Search Issue Tracker
Won't Fix
Votes
1
Found in
2020.3
2020.3.2f1
2021.1
2021.2
Issue ID
1327946
Regression
No
Render Texture is not being updated when using Camera.SetTargetBuffers
How to reproduce:
1. Open attached project "SetTargetBuffers.zip"
2. Open "SampleScene" scene
3. Observe the preview of RenderTexture "TargetBufferTex" while moving the Main Camera in the scene (in the "TargetBufferCamera v" folder)
4. Change "_targetBufferCam.targetTexture = _underWaterTexture;" in the TargetBufferCam.cs with
" _targetBufferCam.SetTargetBuffers(_underWaterTexture.colorBuffer, _underWaterTexture.depthBuffer);"
5. Observe the preview of RenderTexture "TargetBufferTex" while moving the Main Camera in the scene
Expected result: RenderTexture updates
Actual result: RenderTexture does not update
Reproducible with - 2020.3.12f1, 2021.1.12f1, 2021.2.0a21
Could not test (errors) - 2018.4, 2019.4
Comments (1)
-
AsherBurdickMohawk
Jun 20, 2025 21:49
This is the only place I've found this documented so far. Including a note that SetTargetBuffers is deprecated in URP would have been helpful.
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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Resolution Note:
The fix was too prone to breaking current working solutions and fixing this correctly would take too long while we are moving away from this code with the transition to URP.