getting in Game Object from script..

How can I get the reference of the gameobject which is already loaded in game.. For example, if my game has an object called "House" which is in Project Hierarchy like

Hierarchy

Main Camera 
House

In the script there will be a public reference to house written as follow

public Transform House;

void Start() {

}

where the reference of the House has to be initialised from the Editor.. How can I just get the reference of this House from script. I also don't want to use the GameObject.FindObjectWithTag as there might be so many tags attached to different objects. I just want to get the reference of the house by Name... Can somebody help me out of it.

If you've "initialised it from the Editor", then I assume you've dragged the House object into that field, and it's now linked.

In your script, you can then access House like this:

print(House.position); // prints the position of 'House'

For any objects that you don't have an established reference to, you can use GameObject.Find to find a game object by name and return it.