unity-shader

Create, inspect, list, search, delete Unity shaders and retrieve their properties programmatically.

1|Updated Feb 22, 2024
One-click install
npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-shader-stardust-liu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-shader
Source: https://github.com/Stardust-liu/EDC_Framework/tree/main/Assets/AI/Unity-Skills-1.5.5/unity-skills/skills/shader
Command: npx skills add https://github.com/Stardust-liu/EDC_Framework --skill unity-shader-stardust-liu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity shader development often involves manual setup, trial-and-error, and scattered shader assets. This Skill provides a centralized interface to create, inspect, list, search, and retrieve properties of shaders within a Unity project, reducing repetitive tasks and speeding iteration.

Core Features & Use Cases

  • shader_create: Create a new shader asset from a template (Unlit, Standard, Transparent).
  • shader_read: Read shader source code from an asset.
  • shader_list: List all shaders in the project, optionally filtered by name.
  • shader_find: Find a shader by name.
  • shader_delete: Delete a shader asset.
  • shader_get_properties: Retrieve shader properties such as textures, colors, and floats. Use cases include authoring new shaders, auditing shader assets, and verifying shader properties for materials.

Quick Start

Create a new shader named Custom/MyShader using the Standard template and save it to Assets/Shaders/MyShader.shader.

Frequently Asked Questions about unity-shader

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

FAQPage Schema
How do I create a Unity shader from a template programmatically?

To create a Unity shader programmatically, use the shader_create operation to generate a new shader asset from templates like Unlit, Standard, or Transparent, saving it directly to your project's Assets folder.

How can I list and find specific shaders across a Unity project?

You can list and find Unity shaders using the shader_list and shader_find operations, which enumerate all shader assets in the project and allow filtering or locating specific shaders by name.

How do I retrieve shader properties like textures and colors in Unity?

To retrieve Unity shader properties such as textures, colors, and floats, use the shader_get_properties operation, which extracts these attributes directly from the specified shader asset for material verification.

Can I read and delete Unity shader source code through an automated workflow?

Yes, you can automate reading and deleting Unity shader source code by using the shader_read operation to inspect the source and shader_delete to remove unwanted shader assets from your project.

What is the best way to manage scattered Unity shader assets?

The best way to manage scattered Unity shader assets is through a centralized interface that handles creation, inspection, listing, searching, and retrieval, reducing manual trial-and-error and speeding up iteration.

Do I need specific Unity tooling to use shader management operations?

Yes, these shader management operations require Unity shader tooling to function, providing the necessary environment to execute shader_create, shader_read, shader_list, shader_find, shader_delete, and shader_get_properties actions.