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)

  1. kasparaskr

    Jan 29, 2025 10:48

    tesdt

Add comment

Log in to post comment