mat_set_property
Set any named material property, auto-converting values to the target type (color, number, boolean, or string). Use for parameters without dedicated tools, checking the exact property name with get_class_properties first.
Instructions
设置材质的任意命名属性,值会按目标属性的类型自动转换(颜色/数字/布尔/字符串)。当你要改的属性没有专用工具时用它。先用 get_class_properties 查准属性名。 [English] Set any named property of a material; the value is coerced to the target property's type (color/number/boolean/string). Use it for parameters without a dedicated tool. Check the exact property name with get_class_properties first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | 新值:颜色用 [r,g,b],数字直接给,布尔给 true/false。 | New value: colour as [r,g,b], numbers directly, booleans true/false. | |
| material | Yes | 材质名称。 | Material name. | |
| property | Yes | 属性名,例如 metallic、roughness、opacity。 | Property name, e.g. metallic, roughness, opacity. |