Uefn materials

From mimmo-the-root/UEFN-dream-bot-team · View interactive version

Uefn materials is an AI agent skill from the GitHub repository mimmo-the-root/UEFN-dream-bot-team. Create or edit a Material, Material Instance or parameter in the lab and apply it to an actor via the UEFN MCP (39/39 tools ok), and tidy a messy material graph (layout pass, no change in behavior). Use for materials work; only `verified` recipes, rest listed as not verified.

How to use this skill

Skill file

uefn-materials (MVP experimental, B8)

Source: Claude/docs/mcp/materials.md, recipes.json, SKILLS-PROPOSAL.md B8. Read first: skills uefn-mcp-lab-guard (guard rules, lab mount) and uefn-create-use-remove-one-script (create, use and remove in ONE script).

Tidy a graph

Crossed wires, unlabeled nodes, odd names: references/graph-cleanup.md has the layout-only prompt (from Epic), the checks before and after, and what is not verified yet. It never changes what the material does.

Rules

Recipes `tool-ok` or `proven` (recipes.json)

MaterialTools (editor_toolset.toolsets.material.MaterialTools): create_material {folder_path, asset_name}, add_expression, connect_expressions, connect_to_output, get_property_input, recompile, get_statistics, diff_material.

MaterialInstanceTools (editor_toolset.toolsets.material_instance.MaterialInstanceTools): create, list_parameters, set_scalar_parameter, set_vector_parameter, set_static_switch_parameter, set_texture_parameter, set_parent (cleanup: set_parent back to the original), clear_parameters, get_scalar_parameter.

Cleanup of created assets: AssetTools/delete {path: package path without .Name}.

Traps

Documented fix: drone (materials.md "Drone fix log", 2026-10-16)

Symptom: log Material ... missing usage flag SkeletalMesh! Default Material will be used in game on a skeletal mesh (mech-drone, slots Fire/Robot); instances had parent FBX Interchange phong with empty textureParameterValues and all *MapWeight 0.

Fix: (1) create lab materials with ObjectTools/set_properties {values: '{"bUsedWithSkeletalMesh": true}'} (key WITH the b prefix; usedWithSkeletalMesh fails); (2) wire textures (BaseColor, Normal, Gloss->OneMinus->Roughness, AO R, Emissive) and recompile; (3) MaterialInstanceTools/set_parent of each slot instance to the new material, then save_assets. Revert: set_parent back to the Interchange phong parent (original values untouched).

Status: recompile ok (217 / 158 instructions); bUsedWithSkeletalMesh reads true; NOT verified visually and no fresh in-game log line after the fix.

To try (not verified)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.