Version: 2021.1

DetailPrototype

class in UnityEngine

切换到手册

描述

Terrain GameObject 使用的细节原型。

变量

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)。
noiseSpread对于 DetailPrototype 而言,此噪声如何传播。
prototypeDetailPrototype 使用的 GameObject。
prototypeTextureDetailPrototype 使用的纹理。
renderModeDetailPrototype 的渲染模式。
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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961