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

Package: Addressables

-

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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.