Skip to main content

Spawn Conditions

Spawn at Label's Start/Middle/End

By default, a component will be spawned at every point where a Label is fulfilled. It can also be set to spawn at the start, end and middle of the Label.

Warning

If a Label is fulfilled at a single point in some area, single Start/Middle/End options will not spawn anything. In such case, only combining all the options will spawn the component.

Spawn with Offset

It's also possible to spawn components with a certain offset from the given Label (ex: turn signs).

Spawn If Label Fulfilled Anywhere/Everywhere in Range

All components decide where along the Path we look for the given Label. This fragment of the Path is referred as the DetectionRange and can be set by the Range Start/End properties. This range is relative to the PathTemplate, or in other words, to the fragment of Path intended for the PathTemplate. So for example if the PathTemplate is 10 meters long and the Range Start is -20%, then we start looking for the given Label, two meters behind the fragment intended for the PathTemplate.

The image below demonstrates, where the DetectionRange is if its Start is set to 0% and End to 100%. It overlaps the entire PathTemplate.

image

The DetectionRange can also be seen when a spawned component is selected and the Labels tool is enabled.

image

Negate

Existence of some components might exclude existence of others. To achieve that, set the identical SpawnCondition to both components, but in one enable the Negate option. This might be useful for solid/broken road lanes.

Path Spline Name

The Path Spline Name property decides on which of the Path's PathSplines we check the given Label.

image

SpawnConditions for entire PathTemplates

SpawnConditions can also be used to control whether an entire PathTemplate or group of the PathTemplates gets spawned (ex: a tunnel spawns only when a Path is underground).

image