Unity Issue Tracker - In WebGL Player “Default Cursor” resets to system default cursor when leaving UI Document which sets a custom cursor
Fixed
UUM-1158
In WebGL Player “Default Cursor” resets to system default cursor when leaving UI Document which sets a custom cursor
Unity: Web Platform
Open
2021.2.X
Fixed
2023.1.X
2022.2.X
2022.1.X
2021.3.X
2020.3.X
Fixed in GitHub PR https://github.cds.internal.unity3d.com/unity/unity/pull/12925
How to reproduce:
1. Open the user’s attached “UI Tookit theme bug.zip” project
2. Open the “SampleScene” Scene
3. Switch to WebGL platform and “Run And Build”
4. In the Player hover over the green square on the left
5. Move the cursor away from the square
Expected result: The cursor stays the same as selected in Player Settings “Default Cursor”
Actual result: The cursor becomes the system default one
Reproducible with: 2021.2.7f1, 2022.1.0b2
Could not test with: 2019.4.34f1, 2020.3.25f1 (Errors in the Console)
Notes:
To see expected result enter the Play Mode
Issue is not present in standalone Player
Removing “cursor: url('project://database/Assets/Arrow.png?fileID=2800000&guid=636da000faceea041a4d58b5fd7bb2c2&type=3#Arrow');” from “theme1.uss” gives the expected result
Prioritise and Follow this issue
Have a workaround or additional info about this issue?