Search Issue Tracker
By Design
By Design in 5.5.X
Votes
2
Found in
5.6.0p4
Issue ID
914760
Regression
No
Resources.UnloadAsset breaks Texture at runtime, shows up as black
Steps to reproduce:
1. Open user attached project "Black Textures.zip"
2. Press "Spacebar" multiple times to load and unload the scene
3. At first Cube loads with texture, upon subsequent loads the texture is black
Expected: Texture loads and unloads correctly, shows cat proper
Actual: Texture gets broken after unload, subsequent loads show blackness
Reproduced on: 5.5.3p4, 5.6.1p1, 2017.1.0b7, 2017.2.0a1
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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
mitaywalle
Feb 06, 2018 19:12
UPD: Disabling objects before Unload helps
mitaywalle
Feb 06, 2018 18:08
Also have this problem in 2018.1b5. Textures became black, unload meterials for some reason help not always
SevenPointRed
Feb 04, 2018 19:41
I should probably add you can work around this by also unloading the material as well as the textures, if you just unload the textures it won't reload them ever.
SevenPointRed
Feb 04, 2018 19:33
After having a lot of bugs with UnloadUnusedAssets I've been trying UnloadAsset with an explicit list, I also get this on 2017.3.0f3