How do materials menu? help

Hi all.
I guess this question is asked a lot but can not find clear answer.
Can you help give tutorial link from this forum or a response.

I’m a newbie in programming and would like to know how to do a drop-down menu when you click on a objebto to choose from a list item that is assigned to the object.
example:http://www.youtube.com/watch?v=bM_X-7Llv8M
I’m an architecture student and I want to make a virtual visit to a school project, is modeled in 3DMAX and import the model into Unity 3d, but I want to impress the teacher and up note.

What you need to know is built-in arrays, materials and a couple of GUI basics.

The idea is that you store your materials in an array which gets looped through to show as buttons in the GUI. When clicked the button is referenced to the material in the array where the selected object’s renderer gets a call to switch material.

To select the object you could either use a Raycast or put a script on each object that is changeable with OnMouseUp. Store the object’s renderer and assign the new material to it.

Hi all, I have managed to create the script to change the material buttons that appear within screen:

var button1_tex : Texture;

var button2_tex : Texture;

var crate_tex1 : Material;

var crate_tex2 : Material;

var _mouseOver = false;

var _mouseClick = false;
function OnMouseOver() {
_mouseOver = true;
}

function OnMouseExit() {

_mouseOver = false;
}

function OnMouseDown () {

if(_mouseOver){

_mouseClick=true;
}

}

function OnGUI()

{

if(_mouseClick)

{

if (GUI.Button (Rect (10,40,40,40), button1_tex) )
{

Debug.Log(“Material 1 should come up”);

 renderer.material = crate_tex1;

_mouseClick = false; //This part of the code hides the buttons away

}

if (GUI.Button (Rect (10,80,40,40), button2_tex) )
{

Debug.Log(“Material 2 should come up”);

 renderer.material =  crate_tex2;

_mouseClick = false; //This part of the code hides the buttons away

}

}
}

But the problem arises me ( Mouse Look) that the camera moves and I want to stay put when you exit buttons.