UnityEditor.ImportRawHeightmap.InitializeImportRaw C# (CSharp) Method

InitializeImportRaw() private method

private InitializeImportRaw ( Terrain terrain, string path ) : void
terrain UnityEngine.Terrain
path string
return void
        internal void InitializeImportRaw(Terrain terrain, string path)
        {
            base.m_Terrain = terrain;
            this.m_Path = path;
            this.PickRawDefaults(this.m_Path);
            base.helpString = "Raw files must use a single channel and be either 8 or 16 bit.";
            this.OnWizardUpdate();
        }

Usage Example

示例#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);
            }
        }
All Usage Examples Of UnityEditor.ImportRawHeightmap::InitializeImportRaw