文档

Unity Engine

Unity Engine

maxHeightmapResolution

The largest heightmap resolution. Setting TerrainData.heightmapResolution above it clamps the value to it and logs a warning.
阅读时间1 分钟最后更新于 14 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.TerrainModule
public static int maxHeightmapResolution { get; }

Remarks

The heightmap resolution is rounded up to a power of two plus one, so a small value gives the smallest supported resolution and there is no separate minimum.