Search Issue Tracker
Won't Fix
Votes
0
Found in
5.6.3f1
Issue ID
949247
Regression
No
[UWP] Input.GetJoystickNames() empty on Start in UWP builds
To reproduce:
1. Open the attached project
2. Connect at least one Controller to the PC the issue is being tested on
3. Launch "test.scene" scene in the editor to make sure the controller is detected
4. Make a UWP build and launch it
Result: Connected controllers are not detected using Input.GetJoystickNames() as they are in the editor
NOTE:
Having Input.GetJoystickNames() in Update() eventually finds the connected controllers.You can test this by setting CheckInUpdate field in "script" script to true
Reproduced on: 5.6.3p3, 2017.1.1p1, 2017.2.0b11, 2017.3.0a7 with .NET and IL2CPP scripting backends
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
- Animation events trigger twice when using blend trees with non-zero weights
- The Physics Material Dynamic Friction field tooltip is set to one of Friction Combine field
- [Android][Mobile Notifications] The Player freezes or crashes when calling "AndroidNotificationCenter.GetNotificationChannel" every frame
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
Resolution Note (2018.1.X):
This issue is due to a race-condition between the Windows device enumerator and the GetJoystickNames() method. That is, retrieving device names before enumeration completes returns an incomplete list, but there isn't a good solution to fix it for the Unity API.