← 返回函数库

assetType

File 内置函数 已实现

说明

返回资产类型标识。

语法

assetType(assetPath)

示例

attr x = assetType(assetPath)

🎨 3D 预览 — 资源类型

@StartRule
Lot --> primitiveCube(4, 4, 4)
        print(assetType("example"))
        color(0.6, 0.7, 0.8)