← 返回函数库

assetDepth

File 内置函数 已实现

说明

返回资产图像的深度(位深)。

语法

assetDepth(assetPath)

示例

attr x = assetDepth(assetPath)

🎨 3D 预览 — 资源深度

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