Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


basemapDistance

Heightmap patches beyond basemap distance will use a precomputed low res basemap.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public float basemapDistance { get; set; }

Remarks

This improves performance for far away patches. Close up Unity renders the heightmap using splat maps by blending between any amount of provided terrain textures.

Examples

using UnityEngine;public class Example : MonoBehaviour{ void Start() { Terrain.activeTerrain.basemapDistance = 100; }}