Hi, I need to register an “OnPointerClick” function which gets called when “Any” click occurs. Even if I don’t click “something”, i.e. empty unity space. Is this possible? I will also need the same functionality for OnDrag etc.
The EventSystem logging shows that it knows these things are happening, but I don’t know how to get access to that information!
It’s the source code for Unitys UI system. What I did was copy the TouchInputModule and anywhere it performed an ExecuteEvents.Execute I added the same thing but set the target to a custom class which implemented all the IEventSystemHandler interfaces.
If any Execute command depended on a condition such as pointer.lastPress NOT being null, I ignored that for the Global events. Hope that helped you
Hi, I cant see exactly where to set the target class, besides I want both desktop and touch input modules to do that, cant I expose a public MonoBehaviour in, say PointerInputModule or BaseInputModule or on both platform modules individually and then use it as an optional parameter for the target.
It would be easy to post you script or link me to your fork on BitBucket. This feature must come to Unity.
cheers…