How to Detect a Click on an object using an event trigger

So the project I’m making consists of many camera paths and continue buttons. I want it so that when a box is clicked on, the next camera path will start, but the next path won’t start. Right now I have an event trigger component on the box that I was pressed. When I asked for the object I dragged in the next camera path object and selected the play function. The play function is a pre=made function coming with the camera path asset. As far as my knowledge goes this is supposed to look for a click of the box and trigger playing the camera path and the problem is with sensing the click. Any clue how to fix this? Thanks for the help.

I know it’s too late but it may help others

Try this :

  1. Attach PhysicsRaycaster component if your box( on which you are clicking) is 3d or attach PhysicsRaycaster2D component to camera(make sure box must have collider)

  2. Attach EventSystem component to camera or any other object

  3. Register method(in which you are changing camera path) in event trigger–>PointerDown event for click.

Now it will detect click on box and call method to change camera path