How can I get an object by it's hierarchy name. For example if I have an object named "cube" in the scene, how can I reference it?
In script? Check out this link: http://unity3d.com/support/documentation/ScriptReference/GameObject.GameObject.html
and Find GameObject by names: http://unity3d.com/support/documentation/ScriptReference/GameObject.Find.html