ue5_set_material
Applies a material to a StaticMeshComponent on a specified actor using its object path and material asset path.
Instructions
Applies a material to a StaticMeshComponent on an actor. The component is accessed as '.StaticMeshComponent0'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actorPath | Yes | The full object path of the StaticMeshActor. | |
| materialPath | Yes | The asset path of the material (e.g., '/Game/StarterContent/Materials/M_Ground_Grass.M_Ground_Grass'). | |
| elementIndex | No | Material slot index. Default: 0. |