Does anybody understand how on pointer click and other such events work?

Been fooling around with this for a while now, I haven’t been able to figure out how to get these events to trigger quite yet. Documentation is pretty much nonexistant for this, and I haven’t really found anything via search, on the forum or on the internet, and chatgpt is more confused than I am. Just so some sort of explanation is up on the internet, can someone please explain how these events work?

As far as I know, you need a collision shape, a rigidbody, an event trigger component on the clickable prefab, and a 2d physics raycast component on the player camera (in my use case, I am making a 2d game.) Layers are all set right, nothing is blocking the raycast, and it still isn’t triggering. There seems to be some convoluted selection in event trigger component, however I cant find an explanation for this either.

Thanks for your time

Solved it, in my specific case, it had nothing to do with the event trigger system itself. It was because my camera z was set to 0. I set it to -10 like the default maincamera and everything works as intended.