I’m making a 3D painting app in Unity, where users can paint a model and share with their friends
Since the social aspect is important I’m doing a WebGL build for easy sharing online
But I noticed the Pen input is not fully supported in Unity WebGL builds, especially pen pressure
So it would be great to have pen pressure support in Unity for WebGL builds too
It could help people to create more creative apps and games with Unity
And plenty of painting tools could make good use of it
I would recommend creating a feature request in emscripten repo Issues · emscripten-core/emscripten · GitHub and then a bug report in unity (help->report a bug) as well for tracking purposes.
In meanwhile, I believe the easiest way to unblock you is to write a custom javascript code to use dom pointer events directly, pass data into C++ as usual and write a custom input device that implements pen state.
@dmytro_at_unity Thanks for the pointer
I found this thread where someone already suggested this a long time ago
For some reason it keeps being closed and reopened
@Lemovision I’ve talked to webgl devs, they suggest it’s should be faster to implement it in Unity rather than in emscripten. Would you mind to create a bug report then so we can track it as external request? Thanks!