unity-shadergraph-design
ShaderGraph - Design Rules
Advisory module. Read this before giving Shader Graph guidance. The goal is to keep recommendations anchored to actual package/source behavior, not stale model memory.
Mode: Both. Documentation only, no REST skills.
Source Scope
Validated against:
- Unity 2022.3 package source:
E:/CodeSpace/temp/shadergraph/com.unity.shadergraph@14.0.12 - Unity 6 Graphics source:
E:/CodeSpace/temp/Graphics/Packages/com.unity.shadergraph - Runtime/editor behavior in this repo's ShaderGraph skills and dual-version test environments
Core anchors:
Editor/Data/Graphs/GraphData.csEditor/Data/Nodes/AbstractMaterialNode.csEditor/Data/Interfaces/Graph/SlotReference.cs- Specific node files under
Editor/Data/Nodes/...
When To Load
Load before:
- Designing a new Graph or SubGraph architecture
- Reviewing a proposed Shader Graph node chain
- Advising on blackboard properties, keywords, samplers, or SubGraph boundaries
- Suggesting changes to graphs through the constrained
shadergraph_*node editing skills
What This Module Assumes
- Graph editing is limited to the current safe node whitelist exposed by
shadergraph_list_supported_nodes - Guidance must stay inside what Unity 2022.3 and Unity 6 both support
shadergraph_get_structureis the fact source for current node ids, slot ids, and live topology- The practical overlap is 28 nodes across both versions;
AppendVectorNodeis currently Unity 6 only in live validation
Sub-doc Routing
| Sub-doc | Read when |
|---|---|
| VERSIONS.md | You need version differences or portability rules |
| NODES.md | You need the supported node subset and editable fields |
| RECIPES.md | You need patterns that the current skill subset can actually build |
| PITFALLS.md | You are reviewing a graph or suspect bad advice / hidden costs |
| REVIEW.md | You want a checklist for judging a Shader Graph plan |
Hard Rules
- Do not recommend nodes outside the current whitelist unless you clearly say the current skills cannot build them.
- Do not talk about "editing by node name"; the implementation uses serialized
nodeIdandslotId. - Do not assume Unity 2022.3 has package graph templates. It commonly does not.
- Do not tell the agent to mutate Master Stack, Target, Context, Block, or SubGraph output structure. Stage 2 does not support that.
- For
PropertyNode, create or verify the blackboard property first; the node binds a real property object, not just a string. - Prefer small SubGraphs when reuse or porting matters, but keep them within the currently supported node subset if you expect the skills to edit them later.
When in doubt, cite the relevant source path or ask the runtime graph for structure first.
More from besty0728/unity-skills
unity-skills
Unity Editor automation via REST API — create scripts, analyze scenes, manage assets, control editor, and orchestrate workflows. Triggers: Unity, Unity Skills, in Unity, automate Unity, editor automation, create script, scene summary, build scene, 全自动模式, full auto, semi-auto, 半自动, Unity自动化, Unity编辑器, Unity技能, 操作Unity,在Unity中.
56unity-uitoolkit
UI Toolkit (UITK) for Unity — create/edit USS stylesheets and UXML layouts, configure UIDocument in scenes. Triggers: UI Toolkit, UITK, UXML, USS, UIDocument, PanelSettings, VisualElement, stylesheet, runtime UI, EditorWindow UI, 界面工具包, UI样式, 样式表, 可视化元素.
22unity-ui
Unity UI creation. Use when users want to create Canvas, Button, Text, Image, or other UI elements. Triggers: UI, canvas, button, text, image, panel, slider, toggle, UGUI, 界面, 按钮, 文本, 面板.
20unity-scriptableobject
ScriptableObject management. Use when users want to create, read, or modify ScriptableObject assets. Triggers: scriptableobject, SO, data asset, config, settings asset, 数据资产, 配置文件.
19unity-editor
Unity Editor control. Use when users want to enter play mode, select objects, undo/redo, or execute menu commands. Triggers: play, stop, pause, select, undo, redo, menu, editor, Unity编辑器, Unity播放, Unity撤销, Unity选择.
18unity-light
Unity lighting control. Use when users want to create or configure lights (Directional, Point, Spot, Area). Triggers: light, lighting, directional light, point light, spot light, shadows, intensity, 灯光, 光照, 阴影.
17