I am working on a project to create a 3d city map for the web. Is there a way to make a building open a pop-up or direct you to a URL once you click on the building? For example: The user would walk through the city, look at a building and click on it. Upon rollover a pop-up should tell you which building it is, and once clicked on, it should direct you to the business's URL in another window or pop-up.
using UnityEngine;
public class clickme : MonoBehaviour {
void OnMouseUp() {
Application.OpenURL("http://www.youtube.com/");
}
}
// you can apply this on the GUI Texture or popup…
I don’t think their is one for a popup version but you can definitaly make hyperlinks in gui text, i don’t kknow how, work it out