I'm trying to make a world object clickable to activate a certain function.
For example, A door that when you click on it would load the indoor scene.
But, seeing that I'm still new to this, I'm totally lost on where to even start.
just create a function called OnMouseDown () in a script and attach ti to your GameObject (e.g your dor)
function OnMouseDown ()
{
Application.LoadLevel ("insideScene");
}
it just works with left click so if you need another button use OnMouseOver function and inside it use if and GetMouseButtonDown to see wich button is pressed.
function OnMouseOver ()
{
if (Input.GetMouseButtonDown (1) == true)
{
//put code here
}
}