- Home /
Photo image/gallery
Hello, I was wondering, Is there a way to create a photo grid/gallery where the images enlarge on mouseover and maybe some sort of caption to accompany the enlarged image. I would really appreciate it if anyone would help me out.
yes there is a way...
Bye
lol, seriously though, there are two ways I can think of doing such a thing. And if you not upto speed with GUI i suggest youtube :)
1) have 3d models of the small images and set them infront of the camera as you want then (could be flat cubes with texture on them), and have a script on it that uses On$$anonymous$$ouseEnter() and sets a bool to true.
Then inside the OnGUI () of the same script; if the bool is true, show the image large on the screen (look into OnGUI for this.
2) Very Simular, but this is ALL GUI. ins$$anonymous$$d of cubes in the scene all code that displays the images of say 5 by 5 (across and down) inside the OnGUI function, could be a pain, and i believe gui in unity has a large overhead. Less used the better tbh.
hope this helps somewhat, and that the explanation is clear.
Your answer
Follow this Question
Related Questions
how do I save photo to app / application directory iphone 0 Answers
Image Gallery 2 Answers
Help with Uniflow 0 Answers
Unity accessing to gallery photo of android device 2 Answers
Delete screenshots from Gallery 0 Answers