Can't get Object2Terrain to work

Hello,

I’m trying to get the Object2Terrain script to work from unifycommunity.com

I placed the script in an Editor file in my assets folder, then picked a mesh to try and turn it into terrain and I got this error: (I made sure to drag the little mesh part into the scene view like in the drawing)

MissingReferenceExcepetion: The variable m_TerrainData of ‘Terrain’ doesn’t exist anymore.
You probably need to reassign the m_TerrainData variable of the ‘Terrain’ script in the inspector.

Make sure there’s a terrain in the scene.

A bit late, but with the new C# version, there is no need to have a terrain in the scene anymore as it is automatically generated.