Version: 2022.2

DetailPrototype

class in UnityEngine

切换到手册

描述

Terrain GameObject 使用的细节原型。

变量

alignToGroundRotate detail axis parallel to the ground's normal direction, so that the detail is perpendicular to the ground.
densityControls detail density for this detail prototype, relative to it's size.
dryColorDetailPrototype 为“dry”时的颜色。
healthyColorDetailPrototype 为“healthy”时的颜色。
holeEdgePaddingControls how far away detail objects are from the edge of the hole area.
maxHeight草公告牌的最大高度(如果渲染模式为 GrassBillboard)。
maxWidth草公告牌的最大宽度(如果渲染模式为 GrassBillboard)。
minHeight草公告牌的最小高度(如果渲染模式为 GrassBillboard)。
minWidth草公告牌的最小宽度(如果渲染模式为 GrassBillboard)。
noiseSeedSpecifies the random seed value for detail object placement.
noiseSpreadControls the spatial frequency of the noise pattern used to vary the scale and color of the detail objects.
positionJitterControls how Unity generates the detail positions.
prototypeDetailPrototype 使用的 GameObject。
prototypeTextureDetailPrototype 使用的纹理。
renderModeDetailPrototype 的渲染模式。
targetCoverageControls the detail's target coverage.
useDensityScalingIndicates the global density scale set in the terrain settings affects this detail prototype.
useInstancingIndicates whether this detail prototype uses GPU Instancing for rendering.
usePrototypeMeshIndicates whether this detail prototype uses the Mesh object from the GameObject specified by prototype.

公共函数

ValidateReturns true if the detail prototype is valid and the Terrain can accept it.