Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Terrain Toolkit Sliders won't show

Discussion in 'Formats & External Tools' started by Disastercake, Jun 30, 2012.

  1. Disastercake

    Disastercake

    Joined:
    Apr 7, 2012
    Posts:
    317
    Edit: I moved this post to a more appropriate section of the forum...

    I'm using terrain toolkit, and seeing videos of others using the tool I see that under the Texture tab they have 2 sliders: Texture Slope and Texture Height. I've attached a visual of my issue.

    When switching to the toolkit, I get spammed with warnings in the console all similar to this:
    Code (csharp):
    1. Unable to find style 'white' in skin 'DarkSkin' Repaint
    2. UnityEngine.GUIStyle:op_Implicit(String)
    3. TerrainToolkitEditor:OnInspectorGUI() (at Assets/Imported/TerrainToolkit/Editor/TerrainToolkitEditor.cs:932)
    4. UnityEditor.DockArea:OnGUI()
    I'm using Unity Pro version Unity 3.5.2f2.

    Any suggestions on how to get this working again?

    $terraintoolkitbug.jpg
     
    Last edited: Jun 30, 2012
  2. jayw

    jayw

    Joined:
    Aug 8, 2012
    Posts:
    7
    I've had the same problem, turned out to be because I moved the Terrain Toolkit files to another folder.

    In line 44 of TerrainToolkitEditor.cs, update your absolute path. In my case I moved it to a sub folder called "Assets/Extended Assets/TerrainToolkit/" instead of the original "Assets/TerrainToolkit/"

    Code (csharp):
    1.  
    2. if (!terrain.guiSkin)
    3.         {
    4.             terrain.guiSkin = (GUISkin)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/TerrainErosionEditorSkin.guiskin", typeof(GUISkin));
    5.             terrain.createIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/createIcon.png", typeof(Texture2D));
    6.             terrain.erodeIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/erodeIcon.png", typeof(Texture2D));
    7.             terrain.textureIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/textureIcon.png", typeof(Texture2D));
    8.             terrain.mooreIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/mooreIcon.png", typeof(Texture2D));
    9.             terrain.vonNeumannIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/vonNeumannIcon.png", typeof(Texture2D));
    10.             terrain.mountainsIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/mountainsIcon.png", typeof(Texture2D));
    11.             terrain.hillsIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/hillsIcon.png", typeof(Texture2D));
    12.             terrain.plateausIcon = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Editor/Resources/plateausIcon.png", typeof(Texture2D));
    13.             terrain.defaultTexture = (Texture2D)Resources.LoadAssetAtPath("Assets/Extended Assets/TerrainToolkit/Textures/default.jpg", typeof(Texture2D));
    14.         }
    15.  
    Hope this helps!