unreal-material
Focused workflow for creating, editing, validating, and applying Unreal Engine Material assets through UEEditorMCP. Use for Material graphs, Material Instances, Custom HLSL nodes, material compiler diagnostics, and material assignment to actors/components.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- unreal-material
- description
- Focused workflow for creating, editing, validating, and applying Unreal Engine Material assets through UEEditorMCP. Use for Material graphs, Material Instances, Custom HLSL nodes, material compiler diagnostics, and material assignment to actors/components.
02 资源文件 1
- 参考文档references/custom-hlsl.md2.8 KB
03 SKILL.md 正文
Unreal Material MCP Skill
Context
- Repository rules:
AGENTS.md - Related skills: Editor workflows, UEEditorMCP, Blueprint/Widget, Niagara, C++
- Custom HLSL reference: references/custom-hlsl.md
Use this skill for Material asset creation, graph edits, parameter setup, Custom nodes, Material Instances, post-process materials, compile diagnostics, and applying materials to actors/components.
Preconditions
- Confirm editor connectivity with
ue_ping. - For unknown material actions, run
ue_actions_search("material")andue_actions_schema(action_id=...). - When renderer/compiler behavior is unclear, resolve engine source from
.uprojectand search<EngineRoot>/Engine/Sourceread-only.
Standard Workflow
- Plan material domain, blend mode, shading model, parameters, expressions, and target outputs.
- Create or reuse the asset. Use
if_exists="overwrite"only for deterministic regeneration; usereusewhen preserving edits. - Add expressions with stable explicit
node_namevalues. Never use empty names orNone/NAME_Nonefor parameter keys. - Wire expressions to each other, then to material outputs.
- Set expression and material properties.
- Run
material.auto_layout, thenmaterial.auto_commentif comments are useful. - Compile with
material.compileand inspect structured diagnostics. - Refresh the editor if the Material Editor is open, inspect with
material.get_summary, apply to actors/components if needed, then save.
Core Actions
| Area | Actions |
|---|---|
| Asset | material.create, material.create_instance, material.set_property, editor.save_loaded_asset |
| Graph | material.add_expression, material.connect_expressions, material.connect_to_output, material.remove_expression |
| Properties | material.set_expression_property, material.apply_to_component, material.apply_to_actor |
| Validation | material.compile, material.get_summary, material.refresh_editor, material.auto_layout, material.auto_comment |
Expression And Output Notes
- Common expression classes: constants, scalar/vector/texture parameters, math ops,
TextureSample,TextureObjectParameter,StaticSwitchParameter,MaterialFunctionCall,SceneTexture,Custom. - Common input pins:
A/B,Input,Alpha,Base/Exponent,Min/Max, and Custom-node dynamic input names. - Common outputs:
BaseColor,EmissiveColor,Metallic,Roughness,Specular,Normal,Opacity,OpacityMask,WorldPositionOffset. - For placeholder texture sampling, prefer a visually distinct built-in texture such as
/Engine/EditorShellMaterials/T_BaseButton.T_BaseButtonafter verifying it exists.
Custom HLSL
When the task involves a Custom node:
- Read references/custom-hlsl.md.
- Choose the correct pipeline before writing nodes: math-only, regular texture sampling, translucent scene sampling, post-process scene sampling, or post-process texture sampling.
- Add required graph-side nodes before compiling; do not silently move user-requested sampling out of the Custom node.
- Deliver the chosen pipeline, sampling budget if applicable, generated inputs, and compile result.
Diagnostics
material.compileshould returncompiled,error_count,warning_count, anderrors[].- On failure, inspect structured errors before reading logs.
- If output looks wrong but compile succeeds, verify material domain/blend/shading model, graph connections, and Custom node return type.
- For log fallback, use MCP logs filtered to material/shader categories; never raw-read
Saved/Logs. - Save only the explicit validated material or instance. Use
editor.save_allonly with user-approved all-dirty-package scope.
Delivery
Report material path, expressions/parameters created, output connections, compile warnings/errors, any actor/component assignments, and remaining manual validation needs.
04 同仓库更多 Skills
webapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
internal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).
web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
algorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright violations.
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.