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.

MultiDim error using TerrainImporter.js

Discussion in 'Editor & General Support' started by negativecap, Mar 12, 2013.

  1. negativecap

    negativecap

    Joined:
    Jan 27, 2013
    Posts:
    99
    Hello all, Unity doesn't seem to recognize the identifier MultiDim from the TerrainImporter script from the wiki, is this outdated? What should I use instead? Any advice would be much appreciated.

    Error: Assets/Editor/TerrainImporter.js(239.25) BCE0005: Unknown Identifier: 'MultiDim'.

    Edit: or any other scripts people know about that help manage and import terrain grids w/o manual setup each time.
     
    Last edited: Mar 12, 2013
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,334
    It's looking for the MultiDim class, which is on the wiki. But yes, it's outdated, since you can just declare 2D float arrays directly instead of using MultiDim.

    --Eric
     
  3. negativecap

    negativecap

    Joined:
    Jan 27, 2013
    Posts:
    99
    Thank-you much. Appreciated.
     
  4. rattlesnake

    rattlesnake

    Joined:
    Jul 18, 2013
    Posts:
    138
    Hi there ! There is a last error with :
    terrainData.RecalculateTreePositions();
    => 'UnityEngine.TerrainData.RecalculateTreePositions()' is inaccessible due to its protection level.

    It seems like we could use instead :
    terrain.Flush ();

    But I don't know how to call the terrain var ?

    Thanks a lot in advance !
     
unityunity