MultiDim error using TerrainImporter.js

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.

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

Thank-you much. Appreciated.

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 !