Import Heightmap | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Import Heightmap

    The Create New Terrain wizard has an Import Heightmap section, which allows you to import a RAW heightmap or a series of heightmaps for creating new Terrain. Click the checkbox on the expander menu to enable this option.

    Import Mode

    Heightmaps must be in the RAW format, and the size of each heightmap must be a power of two. There are three import modes: Global, Batch, and Tiles.

    Global

    Global mode lets you import one heightmap for use on all Terrain tiles.

    Batch

    Batch mode lets you import a list of heightmaps, and applies one heightmap per tile. Provide the folder path where heightmaps reside. The Toolbox will then import each heightmap, and automatically assign them to the respective tiles. For auto-assignment to work, you must name the heightmaps properly.

    Heightmap filenames must end with two index digits — the index along the X axis, and the index along the Z axis. For example, MtStHelens_0_0, MtStHelens_0_1, MtStHelens_1_0, and MtStHelens_1_1 creates a 2 x 2 tiled Terrain comprising the four heightmaps. The heightmap files look like this in file explorer.

    Tiles

    Tiles mode lets you assign a heightmap manually to each tile slot, and there are no file naming requirements.

    Information Box

    The information box shows you the resolution and bit depth of the imported heightmaps. It also displays the total number of Terrain tiles.

    Heightmap Settings

    Property Description
    Tile Height Resolution The heightmap resolution on the Terrain, which is identical to the information under Group Settings.
    Height Remap Remaps the 0 and 1 values of the heightmap to minimum and maximum Terrain heights.
    Flip Axis Flips the axis horizontally or vertically, or does not flip them.
    In This Article
    • Import Mode
      • Global
      • Batch
      • Tiles
    • Information Box
    • Heightmap Settings
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023