Search Issue Tracker
Active
Under Consideration for 2021.3.X, 2022.3.X, 6000.0.X, 6000.1.X, 6000.2.X
Votes
1
Found in
2021.3.48f1
2022.3.57f1
6000.0.36f1
6000.1.0b4
6000.2.0a1
Issue ID
UUM-96178
Regression
No
Background image name is not being hashed when using a WebGL build with the hashed names option
How to reproduce:
1. Open the project “IN-89979_EmptyHash”
2. File → Build Settings
3. Click the “Build and Run” button
4. Observe the webpage localhost server open the WebGL build
Expected result: Image Background is visible when the Unity logo first shows up
Actual result: Background is white at the start, when the Unity logo first shows up
Reproducible with: 2021.3.48f1, 2022.3.57f1, 6000.0.36f1, 6000.1.0b4, 6000.2.0a1
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
* The Edit → Project Settings → Player → Splash Image → Background Image name is not being hashed
* The issue is only present when the Edit → Project Settings → Player → Publishing Settings → Name Files As Hashes is enabled
* The code still expects the name to be hashed and breaks the first part of the background in the loading screen of the WebGL build. I attached video examples of working and not working. The code in question can be found in the index.html file after a build is created:
{noformat}canvas.style.background = "url('" + buildUrl + "/17a4ff3a2d8d514ea6a7e660cf6fbb36.jpg') center / cover";{noformat}
* The second loading screen does contain the image
Comments (1)
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
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
kasparaskr
Jan 29, 2025 10:48
tesdt