Syntax
- const id = expression
Parameters
- id—(identifier)Unique identifier for the constant.
- expression—(float, string, bool, float[], string[], bool[])Constant value.
Description
A new constant can be introduced by the const keyword. As for attributes, constant expressions are evaluated only once at the beginning of the generation process before any rule is applied.
The values of constants cannot be externally changed through the Inspector or by a map. Constant expressions do not appear in the Inspector.
Related
Examples
Defining a constant with const
const height = 250
Lot --> extrude(height)