用户工具

站点工具


侧边栏

script:unityengine:classes:terrain:terrain

Terrain 地形

class in UnityEngine/Inherits from: Behaviour

Description 描述

The Terrain component renders the terrain.
地形组件渲染的地形。

Static Variables 静态变量

activeTerrainThe active terrain. This is a convenience function to get to the main terrain in the scene.
激活地形,这是个便于获取场景中主要地形的函数。
activeTerrainsThe active terrains in the scene.
在场景中激活地形。

Variables 变量

bakeLightProbesForTreesSpecifies if an array of internal light probes should be baked for terrain trees. Available only in editor.
指定的数组内部的灯光探测器应该烘培地形树。仅在编辑中可获取。
basemapDistanceHeightmap patches beyond basemap distance will use a precomputed low res basemap.
高度图面片超出底图距离将使用一个预先计算的低解析度底图。
castShadowsShould terrain cast shadows?.
地面是否产生阴影?
collectDetailPatchesCollect Detail patches from memory.
从内存中回收细节块。
detailObjectDensityDensity of detail objects.
细节物体的密度。
detailObjectDistanceDetail objects will be displayed up to this distance.
细节物体将被显示到这个距离。
drawHeightmapSpecify if terrain heightmap should be drawn.
绘制制定地形高度图
drawTreesAndFoliageSpecify if terrain trees and details should be drawn.
绘制指定的地形树和细节。
heightmapMaximumLODLets you essentially lower the heightmap resolution used for rendering.
实际上用于让你降低渲染高度图的解析度。
heightmapPixelErrorAn approximation of how many pixels the terrain will pop in the worst case when switching lod.
在切换lod时,地形将出现大约有多少像素的容差。
legacyShininessThe shininess value of the terrain.
地形的光泽度。
legacySpecularThe specular color of the terrain.
地形的高光颜色。
lightmapIndexThe index of the baked lightmap applied to this terrain.
应用到该渲染器的光照图的索引。
lightmapScaleOffsetThe UV scale & offset used for a baked lightmap.
用来烘培的光照图的UV缩放和偏移量。
materialTemplateThe custom material used to render the terrain.
用于渲染地形的自定义的材质。
materialTypeThe type of the material used to render the terrain. Could be one of the built-in types or custom. See MaterialType.
用于渲染地形的材质的类型。可能是内置或自定义类型之一。
realtimeLightmapIndexThe index of the realtime l
script/unityengine/classes/terrain/terrain.txt · 最后更改: 2016/08/02 05:35 (外部编辑)