文档

Unity Engine

Unity Engine

heightmapPixelError

An approximation of how many pixels the terrain will pop in the worst case when switching lod.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Remarks

A higher value reduces the number of polygons drawn.

Examples

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