geting a gui texture to go to the mouse pointer

hi does anyone know how to get a gui texture to go to the mouse pointer? if so please let me know. thnks.

void update()
{
GameObjec.Find(“gui texture”).transform.position = Input.mousePosition;
}

it doesnt work the guitexture just diasapears.

guitextures are positioned in normalized screen coordinates, so 0 to 1 only.

you can get these coordinates through a function on the camera or alternatively by dividing the mouse coordinates through Screen.width and Screen.height

how do i do that?

GameObjec.Find("gui texture").transform.position = Vector3(Input.mousePosition.x/Screen.width, Input.mousePosition.y/Screen.height,0);

greez
vampir26