Is there any way for Unity to provide the source to TouchInputModule so we can write our own modules? As far as I can tell, we can’t access the source to any of input modules.
Hi,
we are committed to making the new UI system open source, but things are not quite ready for us to wholesale release the source code. You can find some source that I have posted here: stramit’s gists · GitHub but please don’t consider this an official release and some of the files may be from an earlier beta.
THANKS for this! I used your code and some of the docs to come up with this input module for my world-space VR cursor.
So I add collision boxes to the gui elements I want on my world space canvas. Then I do a trace in my world cursor code and when it his a GUI element I call SetTargetObject in this module. It handles the rest. (I also poll my input manager for a tap, and when that happens I sent a submit event to the currently selected object)