invisible flat terrain?

Hello mates…

I have problem with creating invisible Terrain.

  1. I have added new terrain to the scene
  2. I’ve added mesh renderer.
  3. I used this script:
function Start(){
renderer.enabled = false;
}
  1. I connected script with Terrain
  2. I got this error:

MissingComponentException: There is no ‘Renderer’ attached to the “Terrain” game object, but a script is trying to access it.
You probably need to add a Renderer to the game object “Teren”. Or your script needs to check if the component is attached before using it.

I dont know whats going on it should disapper like in other obecjts.

Terrains don’t use a Renderer component; you can see this if you look at it in the inspector. You should use a mesh instead of a terrain.

–Eric