Search Unity

Q on turning terrain off

Discussion in 'Editor & General Support' started by 3Dgal, Nov 5, 2009.

  1. 3Dgal

    3Dgal

    Joined:
    Aug 27, 2009
    Posts:
    17
    Hi, I'm new to Unity and am learning. In my project I made a test terrain. Now I make a new terrain that I want to replace the test terrain. I want to be able to turn the test terrain on/off as I finish the new terrain.

    When I go to the inspector, I see there's a terrain script, but I have no access to the script itself? How do I get to the script? Where do I go so that I can add

    "Terrain.enabled = false;"

    or is there somewhere I can uncheck mesh renderer so it won't render?

    ?? Definitely a newbie question. Thanks for your help.
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    just disable the script itself and it will stop rendering
     
  3. 3Dgal

    3Dgal

    Joined:
    Aug 27, 2009
    Posts:
    17
    Thanks for your help, dreamora. How do you disable the script? Because I can't find the script to disable in the inspector for the terrain.

    Usually in the inspector panel there's the place for the script, then I can click on the script name in order to edit it. Maybe because this is the Unity terrain generator, so I don't know where to look?? thanks for all your help.
     
  4. llde_chris

    llde_chris

    Joined:
    Aug 13, 2009
    Posts:
    205
    Disable the entire game object by clicking on the little text box next to the terrain's name in the inspector.