change variable in another script?

hi all,

is it possible to change a variable in another script?

for example:

i have a variable called speed attached to my camera with a value of 1;

but i also have another script thats attached to a GUI text that when pressed i want to change the speed from 1 to 10 - is this possible?

thanks guys, appreciate your help.

http://unity3d.com/support/documentation/ScriptReference/index.Accessing_Other_Game_Objects.html

–Eric

thanks Eric! :slight_smile: