content_create_material
Creates a Flax surface Material asset through the live editor, saving it at a Content-relative .flax path with base color, roughness, metallic, and optional texture values.
Instructions
Creates a surface Material asset through the live Flax Editor. Paths are relative to Content/ and must end in .flax.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metallic | Yes | Surface metallic value in the 0-1 range. | |
| uvTiling | No | Optional positive UV tiling applied to supplied textures. | |
| baseColor | Yes | Uniform RGBA base color, with every component in the 0-1 range. | |
| roughness | Yes | Surface roughness in the 0-1 range. | |
| relativePath | Yes | Destination path relative to Content/, ending in .flax. | |
| emissiveColor | No | Optional emissive RGBA color, with every component in the 0-1 range. | |
| normalTextureId | No | Optional normal-map FlaxEngine.Texture GUID. | |
| baseColorTextureId | No | Optional FlaxEngine.Texture GUID used for base color. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metallic | Yes | ||
| uvTiling | Yes | ||
| baseColor | Yes | ||
| roughness | Yes | ||
| materialId | Yes | ||
| parameters | Yes | ||
| mainThreadId | Yes | ||
| materialPath | Yes | ||
| emissiveColor | Yes | ||
| normalTextureId | Yes | ||
| baseColorTextureId | Yes |