- Home /
Can't get Object2Terrain to work
Hello,
I'm trying to get the Object2Terrain script to work from http://unifycommunity.com/wiki/index.php?title=Object2Terrain&oldid=13569
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.
Comment
Glad that fixed it, though it's a bit weird--if you didn't have a terrain in the scene, there should be an error saying so. Hmm. Well, I guess that's the answer anyway.