Search Issue Tracker

Fixed

Fixed in 2021.3.52f1, 2022.3.62f1, 6000.0.47f1, 6000.1.0b15, 6000.2.0a9

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

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.