Using raycast to show real life photos of objects

Hello everyone,
I am fairly new to Unity and I am working on a game walkthrough of our Children’s camp to go on our website. I would like to have a gallery of pictures of the actual buildings to pop up when they are clicked on. I am not sure how to do this. Thanks for the help.

If you are targeting non-mobile platforms you can use OnMouseDown, Up, etc… functions. All you have to do is to add a collider to them. It’s simpler than doing a Physics Raycast but it won’t work on mobile platforms.

Thanks for the reply. The one thing that I am not sure how I am going to accomplish is putting a gallery of multiple photos in there. I know I can work it so I get one to show up. But I am not sure how to do more than one with a scroll through or click through. I was thinking of having the click take them in a new window to the webpages photo page?

Are you doing a 3d environment? If not maybe a static webpage might be better. You can use GuiLayout or ongui functions to draw textures / navigation to the screen and resources.load unload to load in textures from the resources folder. I think there are also some image gallery solutions in the asset store if you are not a coder just be careful of loading large images since textures suck up a lot of memory.