Search Issue Tracker
Fixed
Votes
1
Found in
2022.3.13f1
2023.2.0f1
2023.3.0a14
6000.0.0b11
Issue ID
UUM-57569
Regression
Yes
[AsyncLoadInEditor] Textures turn black in Player when they are referenced by a script instance
How to reproduce:
1. Open “BlackTextureInPlayerBug.zip” project
2. Open “TEST_SCENE”
3. Build and Run the Project
4. Observe the Player
Expected result: Both textures show up correctly
Actual result: “T_Soldier_Helmet_Fine” texture shows up in black
Reproduced with: 2022.1.0a16, 2022.3.14f1, 2023.2.2f1, 2023.3.0a16
Not reproducible with: 2021.3.32f1, 2022.1.0a15
Reproduced on: Windows 10 (by reporter), Windows 11
Not reproducible on: No other environment tested
Notes:
- Not reproducible in a new project
- Only reproducible in Player
- Enabling Read/Write in Advanced settings prevents the texture from becoming black in Player
- Might be related to the Polybrush package (according to the reporter)
Comments (1)
-
MUGIK
Dec 15, 2023 13:13
I found a way to reproduce this issue consistently.
Open the attached project and right away(that's important) build player. Textures would be okay.Then get back to editor and select the TEST_SCRIPT object in the hierarchy. Make sure that you see T_Soldier_Helmet_Fine texture is referenced in the script's inspector. Now build the player again and you should see black texture.
Disabling 'ProjectSettings/Editor/LoadTextureDataOnDemand' setting and restarting the editor seems to fix the issue.
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
Resolution Note:
Fixed by https://issuetracker.unity3d.com/product/unity/issues/guid/UUM-53664