Talos docs

instancedMesh

Since 0.7

One mesh drawn at many places (rocks, fences, trees, props): N instances in a binary .instances file, each with a stable id that hits, picks and scripts report.

Plain text

Static: collides through the static mesh path.

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

Fields

FieldTypeRequiredDefaultAllowed valuesDescription
assetstringyesA key of scene.assets whose kind is "glb": the one mesh every instance draws.
materialstringnoA material asset drawn on every instance in place of the mesh's own, as on mesh.
materialsobjectnoPer-submesh material override by glTF material name, as on mesh.
colorstringno#RRGGBB tint over the material, as on mesh.
castShadowbooleannoAccepted for parity with mesh; not applied to instances yet.
receiveShadowbooleannoAccepted for parity with mesh; not applied to instances yet.
sourcestringyesProject-relative .instances file holding the instances. Missing or invalid: no instances, with instances-source-missing / instances-source-invalid.
colliderModeColliderModenosimple, full, noneHow every instance collides: one static collider each, of the shape a mesh of the same asset would get in that mode. Absent: the asset's colliderMode, else the scene's meta.physics.colliderMode, else "simple" for a generated plant and "full" for anything else.
collisionLayoutInstanceCollisionLayoutnoperInstance, cellsOne collider per instance or per cell (see InstanceCollisionLayout). Absent: the parent foliage layer's collisionLayout when this entity is one of its prototypes, else "perInstance".
customDatastring[]noNames of the per-instance custom floats, in file order (at most 8). Absent: none.
cullDistancenumbernoMetres from the camera beyond which no instance draws. Absent: a perspective view stops drawing a cell where one instance would be under 1.5 pixels tall; an orthographic view has no limit.
cellSizenumbernoEdge in metres of the cells instances are culled and picked by. Absent: max(64, 8 x the mesh's radius).