#Could you point me to that Couldn t find
1 messages · Page 1 of 1 (latest)
Official documentation is here:
https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/EventSystem.html
I would actually recommend looking at the built in InputModule implementations, either the old input one or the new one from the input package. Source is available for both.
High level what it's doing is finding an appropriate game object that could receive and event type (based on whether it contains an implementation for the respective Handler for the interaction) and calling that execute method on it.
For things that are selectable, it's safe to just grab the current selected object from EventSystem.current.currentSelectedGameObject and execute on that. For something like touch or mouse, you'd want to use the result of the event system raycasters to get applicable objects and then call execute on what it returns.
It's not tied to a specific UI system or even UI at all. I'm using it right now on a project with standard gameobjects/sprites. It's just a messaging system that works on gameobjects that contain components that implement any expected input handler interface.
The SupportedEvents section of the documentation lists everything that is build in but you can also add your own events to extend the system to support more interaction types
Though, if you add new ones it will require a custom input module to actually invoke them