material_create_function
Creates a reusable Material Function asset and exposes it in the Material Editor library, enabling custom shading logic to be reused across Unreal Engine materials.
Instructions
Create a Material Function asset and expose it to the material function library.
Args: function_name: Function asset name, e.g. "MF_TriplanarTint" folder_path: Content Browser folder for the function description: Tooltip/description shown in the Material Editor overwrite: Delete/recreate an existing asset at the same path save: Save the asset package immediately
KB: see knowledge_base/08_MATERIALS_AND_RENDERING.md#overview Example: material_create_function(function_name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | ||
| overwrite | No | ||
| description | No | ||
| folder_path | No | /Game/Materials/Functions | |
| function_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |