Inheritance: UnityEditor.TerrainWizard
Ejemplo n.º 1
0
        internal static void ImportRaw()
        {
            string saveLocation = EditorUtility.OpenFilePanel("Import Raw Heightmap", "", "raw");

            if (saveLocation != "")
            {
                ImportRawHeightmap wizard = TerrainWizard.DisplayTerrainWizard <ImportRawHeightmap>("Import Heightmap", "Import");
                wizard.InitializeImportRaw(GetActiveTerrain(), saveLocation);
            }
        }
Ejemplo n.º 2
0
        internal static void ImportRaw()
        {
            string text = EditorUtility.OpenFilePanel("Import Raw Heightmap", "", "raw");

            if (text != "")
            {
                ImportRawHeightmap importRawHeightmap = TerrainWizard.DisplayTerrainWizard <ImportRawHeightmap>("Import Heightmap", "Import");
                importRawHeightmap.InitializeImportRaw(TerrainMenus.GetActiveTerrain(), text);
            }
        }