Search Issue Tracker
Fixed in 1.0.0-preview.4
Votes
1
Found in [Package]
1.0.0
Issue ID
1196522
Regression
No
[New Input System] PlayerInput generates error from touch events for new WebGL touch device
I am adding touch support for the new input system for the WebGL platform. All touch events seem to be working correctly, demos all work, but when I have a PlayerInput component in the scene, even empty with no action map, it generates the following error:
"cannot read control '/Touchscreen/pressure' from STAT with fourmat TOUC; device 'Touchscreen:/Touchscreen' expects format TSCR"
The error is being generated from the function InputUser.OnEvent. The InputDevice for the touch event is "Touchscreen:/Touchscreen". The function iterates over device.allControls, and errors on the first control, "Analog:/Touchscreen/pressure" when it calls control.GetStatePtrFromStateEvent.
The WebGL platform touch event code being can be found at:
https://github.cds.internal.unity3d.com/unity/unity/compare/platform/webgl/new_input_touch
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
- Context menu actions (Collapse All, Expand All, Enable All, Disable All, Remove All, Reset All) do nothing in Volume component
- [Android] Audio volume decreases when returning to the app during screen recording
- Graphical issues are caused by GPU Occlusion Culling when using Amplify Shaders
- ”Last item reached” warning is thrown when no search results are found in UI Toolkit Layout Debugger
- UI Elements overlap in the Shortcuts window when docked and resized to a smaller window size
Resolution Note (fix version 1.0.0-preview.4):
Fixed in https://github.com/Unity-Technologies/InputSystem/pull/965