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

WebGL

-

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)

  1. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.18f1

  2. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.31f1

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.