Talos docs

foliage

Since 0.7

A foliage layer: prototypes (each an instancedMesh child) and how a brush fills them (density, scale, yaw, lean).

Plain text

The plants are the children's instances; this component only drives the editor's foliage brush.

Use it in a scene entity's components list as { "type": "foliage", … }. The contract writes the fields flat and refuses unknown keys.

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
prototypesFoliagePrototype[]yesThe kinds of plant the layer places, 1 to 32, each an instancedMesh child chosen by weight.
densitynumberno0Plants per square metre a full brush leaves. Default 0.04 (one per 25 m²).
seedintegerno0Seeds where a brush puts plants and which prototype, scale and yaw each gets. Default 0.
collisionLayoutInstanceCollisionLayoutnoperInstanceperInstance, cellsHow the prototypes' instanced meshes collide when they do not say themselves (see InstanceCollisionLayout). Default "perInstance".

Rules that can refuse it