I want to load different terrainData assets from the Resources folder at runtime. The following doesn't work in Unity 3.0f5. I'm clearly misunderstanding something about the relationship between a Terrain script/object and the terrainData.
var pathString : String;
var newTerrainData : TerrainData = Terrain.activeTerrain.terrainData;
newTerrainData = UnityEngine.Resources.Load(pathString, TerrainData) as TerrainData;
Terrain.activeTerrain.Flush();