FoliageData
此内容尚不支持你的语言。
Defined in: sdk/src/foliage/foliagePlugin.ts:39
The fields of the Foliage component.
Properties
Section titled “Properties”bladeHeight
Section titled “bladeHeight”bladeHeight:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:61
Grass: how tall and how wide a blade is, at scale 1.
bladeWidth
Section titled “bladeWidth”bladeWidth:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:62
cardTent
Section titled “cardTent”cardTent:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:80
1 draws a far tree’s cards as tents (a conifer’s outline) rather than rectangles.
cardU0
Section titled “cardU0”cardU0:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:75
A tree’s far version is two crossed cards showing this rectangle of its texture, as uv: left, bottom, right, top.
cardU1
Section titled “cardU1”cardU1:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:77
cardV0
Section titled “cardV0”cardV0:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:76
cardV1
Section titled “cardV1”cardV1:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:78
castShadows
Section titled “castShadows”castShadows:
boolean
Defined in: sdk/src/foliage/foliagePlugin.ts:67
Whether the generated cells cast shadows. Disable for dense short grass; it still receives lighting and shadows.
cellSize
Section titled “cellSize”cellSize:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:47
count:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:49
Plants per cell.
drawDistance
Section titled “drawDistance”drawDistance:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:65
heightMax
Section titled “heightMax”heightMax:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:57
heightMin
Section titled “heightMin”heightMin:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:56
The band of heights, in world units, plants grow in.
lodDistance
Section titled “lodDistance”lodDistance:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:64
Distance past which a cell is drawn as its far version, and past which it is not drawn.
material
Section titled “material”material:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:43
A material on the Foliage shader, which makes the wind. Empty draws the plants in their own colours, still.
maxScale
Section titled “maxScale”maxScale:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:52
mesh:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:41
The plant to scatter. Empty grows grass, blades made here.
minScale
Section titled “minScale”minScale:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:51
minUp:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:54
The least a place may face up (0 to 1) and still grow something: lower lets plants onto slopes.
seed:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:50
sizeX:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:45
The area, centred on the entity, and the side of the cells it is cut into.
sizeZ:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:46
waterDepth
Section titled “waterDepth”waterDepth:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:59
How deep under water, in world units, a plant may stand: 0 keeps them on dry ground; reeds stand in the shallows.
zonePadding
Section titled “zonePadding”zonePadding:
number
Defined in: sdk/src/foliage/foliagePlugin.ts:73
Additional world-space clearance from a zone’s boundary.
zoneTags
Section titled “zoneTags”zoneTags:
string
Defined in: sdk/src/foliage/foliagePlugin.ts:71
Extra comma-separated exclusion tags, in addition to foliage and grass/tree.
zoneWorld
Section titled “zoneWorld”zoneWorld:
string
Defined in: sdk/src/foliage/foliagePlugin.ts:69
WorldGen world whose zones reserve roads and buildings. Empty uses its first world; no WorldGen leaves the field unchanged.