mat_create_multi_sub
Create a Multi/Sub-Object material with a specified number of sub-slots (1-100) to assign different materials by face ID. Use with objects or fill sub-slots later via mat_set_sub_material.
Instructions
创建一个 Multi/Sub-Object(多维/子对象)材质,指定子槽数量 count。子槽先用默认占位,再用 mat_set_sub_material 逐个填入。配合对象的面材质 ID 使用。 [English] Create a Multi/Sub-Object material with a given number of sub-slots (count). The slots start empty; fill them with mat_set_sub_material. Use with face material IDs on objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | 材质名称。 | Material name. | |
| count | Yes | 子材质数量。 | Number of sub-materials. | |
| objects | No | 创建后赋给这些对象;省略则不赋值。 | Assign to these objects after creation; omit to skip. |