跳到主要内容
知仓学习社ZHICANG

unity-shadergraph-design

Source-anchored Shader Graph design rules for Unity 2022.3

不碰外部(只输出文字)无严重或高危命中Besty0728/Unity-Skills

它会碰到什么

扫了多少6 个文本文件,17 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

> Before calling any skill in this module: if you are about to call a skill with parameters guessed from its name or description, STOP — read this file (or fetch its schema via GET /skills/recommend?includeSchema=true) first. If you already have the parameter definitions from recommend/schema, you may proceed straight to dryRun.

Triggers

  • Building or reviewing Shader Graphs
  • Structuring node chains or SubGraphs
  • Laying out blackboard/keywords
  • Following URP/HDRP graph recipes
  • 构建或审查 Shader Graph、组织节点链或 SubGraph、布置黑板/关键字、参考 URP/HDRP 图配方

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: Documentation only — no REST skills to gate; load freely under any operating mode (Approval / Auto / Bypass).

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.cs
  • Editor/Data/Nodes/AbstractMaterialNode.cs
  • Editor/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_structure is the fact source for current node ids, slot ids, and live topology
  • The practical overlap is 28 nodes across both versions; AppendVectorNode is currently Unity 6 only in live validation

Sub-doc Routing

| Sub-doc | Read when |

|--------|-----------|

| [VERSIONS.md](./VERSIONS.md) | You need version differences or portability rules |

| [NODES.md](./NODES.md) | You need the supported node subset and editable fields |

| [RECIPES.md](./RECIPES.md) | You need patterns that the current skill subset can actually build |

| [PITFALLS.md](./PITFALLS.md) | You are reviewing a graph or suspect bad advice / hidden costs |

| [REVIEW.md](./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 nodeId and slotId.
  • 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.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 1,753
本站分层T1
该仓技能数83
原文件路径SkillsForUnity/unity-skills~/skills/shadergraph-design/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 83 个技能