mat_set_map_slot
Attach a map to a named material slot (like diffuseMap or bumpMap) by creating a map and assigning a bitmap file path.
Instructions
把一个贴图挂到材质的命名槽位(例如 "diffuseMap" / "base_color_map" / "bumpMap")。可指定 mapClass(默认 Bitmaptexture)新建贴图,并用 path 指向位图文件。 [English] Attach a map to a named slot of a material (e.g. "diffuseMap", "base_color_map", "bumpMap"). Creates a map of mapClass (default Bitmaptexture) and points it at path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | 位图文件路径(仅 Bitmaptexture 生效)。 | Bitmap file path (for Bitmaptexture). | |
| slot | Yes | 槽位名(材质属性名)。 | Slot name (material property name). | |
| mapClass | No | 贴图类名,默认 Bitmaptexture。 | Map class, default Bitmaptexture. | |
| material | Yes | 材质名称。 | Material name. |