OptionalonCalled when an object (or any child object) is clicked.
Raycasting hits the object's visible mesh geometry — a Collider is NOT required
(colliders are only used for physics raycasts via context.physics.engine.raycast()).
The EventSystem that dispatches this is created automatically; you do not need to add it manually.
OptionalonCalled when a button is started to being pressed on an object (or a child object)
OptionalonCalled when a pointer (mouse, touch, xr controller) starts pointing on/hovering an object (or a child object)
OptionalonCalled when a pointer (mouse, touch, xr controller) exists an object (it was hovering the object before but now it's not anymore)
OptionalonCalled when a pointer (mouse, touch, xr controller) is moving over an object (or a child object)
OptionalonCalled when a button is released (which was previously pressed in onPointerDown)
Implement on your component to receive input events. The EventSystem that dispatches these is created automatically — no manual setup required. Pointer events raycast against visible mesh geometry, so a
Collideris not needed (only for physics raycasts).