Search Issue Tracker
Active
Under Consideration for 1.22.X, 2.2.X
Votes
0
Found in [Package]
1.22.2
2.2.2
Issue ID
ADDR-3787
Regression
No
Error "Releasing render texture that is set as Camera.targetTexture!" when releasing Prefab that has Camera and is loaded with Addressable
Reproduction steps:
1. Open the attached project "ReproProj"
2. Build and Run “Scenes/SampleScene”
3. Observe the Player
Expected result: No Errors exist
Actual result: Error “Releasing render texture that is set as Camera.targetTexture!” appears
Reproducible with: 1.22.2 (2021.3.44f1), 2.2.2 (2022.3.49f1, 6000.0.22f1)
Reproducible on:
Windows Standalone Player
Not reproducible on:
Play Mode
Testing environment: Windows 10 Enterprise 21H2
Not reproducible on: No other environment tested
Notes:
- If the RenderTexture was also made addressable, the Error could have been avoided
- If TargetTexture is None, the previous Error does not occur.
- Forum thread: [https://issuetracker.unity3d.com/issues/android-releasing-render-texture-that-is-set-as-camera-dot-targettexture-error-when-calling-resources-dot-unloadunusedassets|https://issuetracker.unity3d.com/issues/android-releasing-render-texture-that-is-set-as-camera-dot-targettexture-error-when-calling-resources-dot-unloadunusedassets|smart-link]
Workaround:
1. Open Window > Asset Management > Addressables > Groups in the Unity menu.
2. Drag And Drop the Assets\Resources_moved\RenderTexture to Packed Assets.
3. Build > New Build > Default Build Script
4. Build And Run
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Changing the Visual Element size moves it when two visual elements are close to each other
- Open Reference for Default Style Sheet asset redirects to missing page
- Undoing changes to Default Style Sheet does not show change until editor refresh
- TextMeshPro Caret has an active raycast when TMP_InputField is non-interactable
- Shadows do not smoothly fade in when transitioning between real-time shadows and baked distance shadows
Add comment