How do I link Application.OpenURL () to a GameObject

Hello I am new at this

I would like to know how to run Application.OpenURL() only when I click on an object. I would like to do this for each GameObject opening different URL’s. can someone help me?

Do a Raycast to work out what you clicked on, see the last example at:

When you know what was hit, you then need to work out what URL you need. Presumably you’d store the URL with the game object.