print(value)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
value | any | — | 要输出的值。可为数字、字符串、数组等。 |
在控制台输出值。用于调试 CGA 规则,查看变量或表达式的当前值。
输出调试信息:
Lot --> print("Hello CGA")
CGA.js 中的 print 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(2, 2, 2)\n print("Debug message")\n color(0.7, 0.7, 0.8)