Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2019.4.X, 2020.3.X
Votes
0
Found in
2018.4
2019.3.10f1
2020.2
Issue ID
1239007
Regression
No
New Input System cannot retrieve devices in Start() method when used in WebGL build
To reproduce:
1. Open attached project ("case_1239007.zip")
2. Build and run WebGL build
3. Focus browser window and press 'a' keyboard button
Expected result: Cube object moves to the left
Actual result: Cube object doesn't move
Reproducible in: 2018.4.22f1, 2019.3.11f1, 2020.1.0b6, 2020.2.0a8
Reproducible in package versions: 0.2.1, 0.2.10, 1.0.0-preview.7
Could not test in package versions: 0.1.2, 0.2.0, 0.2.6, 0.2.8 (Due to errors in project)
Notes:
1. As a workaround keep checking 'Device'.current in Update() method until it's not null, then assign its value and use it
2. Browsers tested: Firefox 75.0 (64-bit), Google Chrome Version 81.0.4044.113 (Official Build) (64-bit)
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
- Changing Environment Profiles in Lighting window throws "NullReferenceException" error
- Imported FBX is rendered differently in Game view when comparing to Scene view
- "GetAllOverlapping failed" Error displayed in console or endless loading process on Application.Message.LeftButtonUp when cycle-selecting GameObjects with GPU Resident Drawer enabled
- Scene View has an inverted Game View window when changing from Game View to Scene View on a specific project
- An error is thrown when one TreeView root element is dragged and held over a parent element but is dropped between the elements
Resolution Note (fix version 2020.3):
Fixed in 2020.3.18f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.31f1