internal void OnWizardCreate()
{
if (base.m_Terrain == null)
{
base.isValid = false;
base.errorString = "Terrain does not exist";
}
if ((this.m_Width > 0x1001) || (this.m_Height > 0x1001))
{
base.isValid = false;
base.errorString = "Heightmaps above 4097x4097 in resolution are not supported";
Debug.LogError(base.errorString);
}
if (File.Exists(this.m_Path) && base.isValid)
{
Undo.RegisterCompleteObjectUndo(base.terrainData, "Import Raw heightmap");
base.terrainData.heightmapResolution = Mathf.Max(this.m_Width, this.m_Height);
base.terrainData.size = this.m_TerrainSize;
this.ReadRaw(this.m_Path);
base.FlushHeightmapModification();
}
}