Search Unity

Need help with editor script

Discussion in 'Scripting' started by MikeTeavee, Jul 13, 2018.

  1. MikeTeavee

    MikeTeavee

    Joined:
    May 22, 2015
    Posts:
    194
    I need to adjust the overall height of a terrain without losing the shape. This is so I have more room to dig the terrain lower.

    So I found the solution, it's a script written by Eric5h5.
    http://wiki.unity3d.com/index.php?title=RaiseHeightmap

    I took the C# version and put it in my editor folder, then compiled in VS... but I don't see the option for adjusting the height in the inspector... maybe I'm just not looking in the right spot...?

    Any advice to get this working will help... thanks in advance.

    BTW, I'm using Unity 2017.3.1f1
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,281
    What do you mean you compiled in VS?
    Just add the script to an Editor folder and Unity will compile it.
    You should have a new menu item at the top called Terrain
    The C# one worked for me
     
  3. MikeTeavee

    MikeTeavee

    Joined:
    May 22, 2015
    Posts:
    194
    Ah that's where it is. I was looking for some kind of "Terrain Menu" in the inspector... thanks.
     
    karl_jones likes this.