Hide game object when renderer is null

I am loading obj model in real time. This is my code:

    var houseObject = (GameObject)GameObject.Instantiate(Resources.Load("Models/" + houseNode["model"].GetAttribute("name"))); 
    houseObject.name = "House";
    Debug.Log(houseObject.renderer);

    houseObject.transform.position = GetVector(houseNode["position"]);
    houseObject.transform.localScale = GetVector(houseNode["scale"]);

The questions are the following:

  1. Why my object is rendered in scene(in spite of houseObject.renderer is null)?

  2. How can I hide this model if renderer is null (active = false is not a solution, I need get reference to it later using GameObject.Find(ObjectName) method)

In your test scene, the object you are instanciating does not have the mesh attached itself, the mesh is attached to one of its children.

So you need to disable the renderers in all the childrens of your instantiated object. The object
itself does not have a renderer, that’s why it is null. You could for example loop over all renderers in the hierarchy of your instantiated object using GetComponentsInChildren(Renderer).