private void CreateWorldMap(bool obj) { if (m_worldMap.m_worldMapTerrain == null) { EditorGUILayout.HelpBox(m_editorUtils.GetTextValue("TerrainMissing"), MessageType.Warning); } else { EditorGUILayout.HelpBox(m_editorUtils.GetTextValue("CreateTerrainInfo"), MessageType.Info); } m_worldMap.m_worldMapTileSize = (GaiaConstants.EnvironmentSize)m_editorUtils.EnumPopup("TileSize", m_worldMap.m_worldMapTileSize); m_worldMap.m_heightmapResolution = (GaiaConstants.HeightmapResolution)m_editorUtils.EnumPopup("HeightmapResolution", m_worldMap.m_heightmapResolution); if (m_editorUtils.ButtonAutoIndent("CreateTerrainButton")) { m_worldMap.CreateWorldMapTerrain(); m_worldMap.LookAtWorldMap(); } return; }