assets-shader-get-data

Retrieves properties, subshaders, passes, and compilation messages from Unity shader assets.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-shader-get-data-ishaansingh-ai
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: assets-shader-get-data
Source: https://github.com/ishaansingh-ai/Mechanical-2D/tree/main/.claude/skills/assets-shader-get-data
Command: npx skills add https://github.com/ishaansingh-ai/Mechanical-2D --skill assets-shader-get-data-ishaansingh-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires unity-mcp-cli.

What problem does it solve? Inspecting a Unity shader's internal structure—its properties, subshaders, passes, and compilation errors—normally requires opening the Unity Editor and clicking through the Inspector. This Skill exposes that data programmatically through the unity-mcp-cli, so an AI agent can diagnose shader issues and analyze shader structure directly. ## Core Features & Use Cases - Shader Diagnostics: Retrieve compilation error and warning messages with line numbers, severity, and target platform. - Property Inspection: List all shader properties (uniforms) with types, ranges, default textures, and attributes. - Structure Analysis: Enumerate subshaders and passes, optionally including full pass source code. - Use Case: A material renders pink in your build. Ask the agent to fetch the shader's data with messages included, identify the compilation error on your target platform, and confirm whether the shader is supported. ## Quick Start Ask the agent to get the data for the shader at Assets/Shaders/MyShader.shader including compilation messages and properties.

Frequently Asked Questions about assets-shader-get-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get shader compilation errors in Unity from the command line?▼

Run the assets-shader-get-data tool via unity-mcp-cli with the shader's asset reference and includeMessages set to true. The response lists each error or warning with its message text, line number, severity, and target platform.

How to list all properties of a Unity shader?▼

Call the tool with includeProperties set to true. It returns every shader property with its name, display description, type such as Color or Range, flags, range limits, default texture, and custom attributes.

How do I find shaders in a Unity project before inspecting them?▼

Use the assets-find tool with the filter 't:Shader' to search for shader assets, or the assets-shader-list-all tool to list all shader names. Then pass the resulting asset reference to assets-shader-get-data.

Can I get the source code of individual shader passes in Unity?▼

Yes, set both includeSubshaders and includeSourceCode to true. Each pass in the response will include its source code, but be aware this can produce very large responses for complex shaders.

What should I do if unity-mcp-cli is not found?▼

Install it globally with npm install -g unity-mcp-cli, or prefix commands with npx. The unity-initial-setup skill contains detailed installation instructions for the CLI.