بنقرة واحدة
unity-shader
Use when users want to create or inspect shaders.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when users want to create or inspect shaders.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Use when working with a Unity project via MCP — creating or editing scenes, GameObjects, components, prefabs, materials, UI, lighting, navmesh, animations, terrain, C# scripts, or any other Unity Editor task.
Use when users want to run Unity tests or read test results.
Use when users want to enter play mode, select objects, undo/redo, or execute menu commands.
Use when creating, reading, editing, searching, validating, or deleting C# scripts in a Unity project.
Use when about to write or install a custom Editor script, add a [MenuItem], build a custom Editor window, or create a one-off Editor helper — to check whether a ready-to-paste template already exists in tooling/<domain>/ before reaching for Unity_CreateScript.
Use when users want to create Canvas, Button, Text, Image, or other UI elements.
| name | unity-shader |
| description | Use when users want to create or inspect shaders. |
Work with shaders - create shader files, read source code, and list available shaders.
DO NOT (common hallucinations):
shader_set_property does not exist → use material_set_float/material_set_color/etc. on the material, not the shadershader_apply / shader_assign do not exist → use material_set_shader to change a material's shadershader_get_properties returns shader property definitions (name/type/range), not current values → for material instance values use material_get_properties"Standard", "Universal Render Pipeline/Lit", not "standard" or "URP Lit"Routing:
material modulematerial_set_keyword (material module)shader_set_global_keyword (this module)| Skill | Description |
|---|---|
shader_create | Create shader file |
shader_read | Read shader source |
shader_list | List all shaders |
shader_find | Find shader by name |
shader_delete | Delete shader file |
shader_get_properties | Get shader properties |
shader_check_errors | Check shader for compilation errors |
shader_get_keywords | Get shader keyword list |
shader_get_variant_count | Get shader variant count for performance analysis |
shader_create_urp | Create a URP shader from template |
shader_set_global_keyword | Enable or disable a global shader keyword |
Create a shader file from template.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shaderName | string | Yes | - | Shader name (e.g., "Custom/MyShader") |
savePath | string | Yes | - | Save path |
template | string | No | "Unlit" | Template type |
Templates:
| Template | Description |
|---|---|
Unlit | Basic unlit shader |
Standard | PBR surface shader |
Transparent | Alpha blended |
Read shader source code.
| Parameter | Type | Required | Description |
|---|---|---|---|
shaderPath | string | Yes | Shader asset path |
Returns: {success, path, content}
List all shaders in project.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
filter | string | No | null | Name filter |
limit | int | No | 100 | Max results |
Returns: {success, count, shaders: [{name, path}]}
Find a shader by name.
| Parameter | Type | Required | Description |
|---|---|---|---|
searchName | string | Yes | Shader name to find |
Returns: {success, name, path, propertyCount}
Delete a shader file.
| Parameter | Type | Required | Description |
|---|---|---|---|
shaderPath | string | Yes | Shader asset path |
Get all properties defined in a shader.
| Parameter | Type | Required | Description |
|---|---|---|---|
shaderNameOrPath | string | Yes | Shader name or shader asset path |
Returns: {success, properties: [{name, type, description}]}
shader_check_errorsCheck shader for compilation errors.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shaderNameOrPath | string | Yes | - | Shader name or asset path (e.g., "Custom/MyShader" or "Assets/Shaders/My.shader") |
Returns: { shaderName, hasErrors, messageCount }
shader_get_keywordsGet shader keyword list.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shaderNameOrPath | string | Yes | - | Shader name or asset path (e.g., "Custom/MyShader" or "Assets/Shaders/My.shader") |
Returns: { shaderName, keywordCount, keywords: [{ name, type }] }
shader_get_variant_countGet shader variant count for performance analysis.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shaderNameOrPath | string | Yes | - | Shader name or asset path (e.g., "Custom/MyShader" or "Assets/Shaders/My.shader") |
Returns: { shaderName, subshaderCount, totalPasses }
shader_create_urpCreate a URP shader from template (type: Unlit or Lit).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
shaderName | string | Yes | - | Shader name (e.g., "Custom/MyURPShader") |
savePath | string | Yes | - | Save path (e.g., "Assets/Shaders/MyURP.shader") |
type | string | No | "Unlit" | Template type: "Unlit" or "Lit" |
Returns: { success, shaderName, path, type }
shader_set_global_keywordEnable or disable a global shader keyword.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
keyword | string | Yes | - | Global shader keyword name |
enabled | bool | Yes | - | true to enable, false to disable |
Returns: { success, keyword, enabled }
See ../../recipes/shader/<command>.md for C# templates.
Recipe path rule: ../../recipes/shader/<command>.md