文档

Unity Engine

Unity Engine

basemapDistance

Heightmap patches beyond basemap distance will use a precomputed low res basemap.
阅读时间1 分钟最后更新于 1 天前

Definition

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; }}