unity-build-materials
Author Unity materials and shaders for the selected render pipeline with explicit variants, import settings, and GPU budgets.
- License 许可
- MIT
- 最近更新
- 2026-11-13
- Stars
- ★ 4
- Forks
- 3
01 前言 Front Matter
- name
- unity-build-materials
- engines
- [ "UNITY" ]
- description
- Author Unity materials and shaders for the selected render pipeline with explicit variants, import settings, and GPU budgets.
02 资源文件 72
- 参考文档agents/openai.yaml272 B
- 参考文档checklist.md24.3 KB
- 其他customize.toml1.5 KB
- 参考文档instructions.md1.3 KB
- 参考文档references/shader-authoring.md3.6 KB
- 参考文档resources/knowledge/adr-quality-readiness-checklist.md24.8 KB
- 参考文档resources/knowledge/api-request.md16.7 KB
- 参考文档resources/knowledge/api-testing-patterns.md26.3 KB
- 参考文档resources/knowledge/auth-session.md15.8 KB
- 参考文档resources/knowledge/burn-in.md6.4 KB
- 参考文档resources/knowledge/ci-burn-in.md22.0 KB
- 参考文档resources/knowledge/component-tdd.md15.8 KB
- 参考文档resources/knowledge/contract-testing.md38.1 KB
- 参考文档resources/knowledge/data-factories.md15.0 KB
- 参考文档resources/knowledge/email-auth.md24.0 KB
- 参考文档resources/knowledge/error-handling.md22.4 KB
- 参考文档resources/knowledge/feature-flags.md22.7 KB
- 参考文档resources/knowledge/file-utils.md13.4 KB
- 参考文档resources/knowledge/fixture-architecture.md12.1 KB
- 参考文档resources/knowledge/fixtures-composition.md11.0 KB
- 参考文档resources/knowledge/intercept-network-call.md13.2 KB
- 参考文档resources/knowledge/log.md11.0 KB
- 参考文档resources/knowledge/network-error-monitor.md12.0 KB
- 参考文档resources/knowledge/network-first.md15.9 KB
- 参考文档resources/knowledge/network-recorder.md15.1 KB
- 参考文档resources/knowledge/nfr-criteria.md26.0 KB
- 参考文档resources/knowledge/overview.md9.4 KB
- 参考文档resources/knowledge/pact-broker-webhooks.md13.1 KB
- 参考文档resources/knowledge/pact-consumer-di.md11.7 KB
- 参考文档resources/knowledge/pact-consumer-framework-setup.md35.0 KB
- 参考文档resources/knowledge/pact-mcp.md8.8 KB
- 参考文档resources/knowledge/pactjs-utils-consumer-helpers.md15.7 KB
- 参考文档resources/knowledge/pactjs-utils-overview.md10.2 KB
- 参考文档resources/knowledge/pactjs-utils-provider-verifier.md17.8 KB
- 参考文档resources/knowledge/pactjs-utils-request-filter.md7.1 KB
- 参考文档resources/knowledge/playwright-cli.md14.6 KB
- 参考文档resources/knowledge/playwright-config.md21.0 KB
- 参考文档resources/knowledge/probability-impact.md18.8 KB
- 参考文档resources/knowledge/recurse.md12.6 KB
- 参考文档resources/knowledge/risk-governance.md20.5 KB
- 参考文档resources/knowledge/selective-testing.md21.3 KB
- 参考文档resources/knowledge/selector-resilience.md19.3 KB
- 参考文档resources/knowledge/test-healing-patterns.md20.9 KB
- 参考文档resources/knowledge/test-levels-framework.md14.4 KB
- 参考文档resources/knowledge/test-priorities-matrix.md11.2 KB
- 参考文档resources/knowledge/test-quality.md24.0 KB
- 参考文档resources/knowledge/timing-debugging.md13.7 KB
- 参考文档resources/knowledge/visual-debugging.md17.1 KB
- 参考文档resources/knowledge/webhook-module-setup.md5.7 KB
- 参考文档resources/knowledge/webhook-providers.md6.3 KB
- 参考文档resources/knowledge/webhook-risk-guidance.md6.3 KB
- 参考文档resources/knowledge/webhook-template-matchers.md5.9 KB
- 参考文档resources/knowledge/webhook-testing-fundamentals.md3.1 KB
- 参考文档resources/knowledge/webhook-timeout-error.md5.6 KB
- 参考文档resources/knowledge/webhook-waiting-querying.md6.9 KB
- 资产文件resources/tea-index.csv10.7 KB
- 参考文档steps-c/step-01-preflight-and-context.md7.7 KB
- 参考文档steps-c/step-01b-resume.md2.8 KB
- 参考文档steps-c/step-02-identify-targets.md6.2 KB
- 参考文档steps-c/step-03-generate-tests.md12.9 KB
- 参考文档steps-c/step-03a-subagent-api.md12.3 KB
- 参考文档steps-c/step-03b-subagent-backend.md7.3 KB
- 参考文档steps-c/step-03b-subagent-e2e.md6.3 KB
- 参考文档steps-c/step-03c-aggregate.md11.5 KB
- 参考文档steps-c/step-04-validate-and-summarize.md3.2 KB
- 参考文档steps-e/step-01-assess.md1.2 KB
- 参考文档steps-e/step-02-apply-edit.md1.4 KB
- 参考文档steps-v/step-01-validate.md1.8 KB
- 参考文档validation-report-20260127-095021.md2.0 KB
- 参考文档validation-report-20260127-102401.md3.6 KB
- 参考文档workflow-plan.md429 B
- 参考文档workflow.yaml1.8 KB
03 SKILL.md 正文
Unity Build Materials
When to use
Author Unity materials and shaders for the selected render pipeline with explicit variants, import settings, and GPU budgets. Use this feature only for Unity-owned project code and assets.
Activation and prerequisites
Run commands/resolve-engine.sh and commands/resolve-skill.sh unity-build-materials before edits or tool launches. Continue only when the effective engine is UNITY and this skill is eligible. A requested skill never selects its engine. Honor the resolved task override evidence and permitted output scope when an isolated prototype is selected.
Identify exact Unity version, Built-in/URP/HDRP selection, renderer settings, target graphics APIs, color space, lighting mode, texture budgets and shader-authoring approach. Match installed pipeline and Shader Graph package versions.
Workflow
- Audit material slots, mesh attributes, texture semantics and import settings before editing shaders. Verify normal map interpretation, sRGB versus linear data, alpha mode and tangent conventions against source art.
- Use the selected pipeline's supported shader path: ShaderLab/HLSL, Shader Graph or an existing authored shader. Read shader authoring and variants for graph targets, custom functions and reflected node APIs. Renderer configuration and explicit pipeline migrations belong to the rendering owner.
- Choose opaque, cutout or blended rendering from visibility requirements. Record depth writes, sorting, shadow behavior, double-sided cost and overdraw rather than fixing artifacts through arbitrary queue changes.
- Own material lifetime explicitly. Understand sharedMaterial versus per-renderer material instances; use MaterialPropertyBlock where appropriate to avoid unbounded instance creation while checking compatibility with the project's batching strategy.
- Define bounded keywords, variants and runtime parameter updates. Retain required variants for player builds and test stripping behavior instead of relying only on Editor preview compilation.
- Implement effects against project GPU and memory budgets, including texture sizes, mipmaps, sampler use, vertex cost and transparency. Quality tiers must preserve gameplay readability and accessible cue alternatives.
- Use representative lit scenes and the selected render backend to compare output, then document any unsupported platform feature with an explicit approved fallback.
Verification
- Compile in the actual Editor and selected player target, checking shader errors, pink materials, stripped variants and graphics API differences.
- Review close, distant and grazing-angle views under relevant lighting; test instancing/batching, alpha edges and texture streaming behavior.
- Use Frame Debugger and target-device profiling for draw calls, overdraw and GPU cost; screenshots alone do not establish frame budgets.
Output
Materials/shaders and import changes, pipeline/version compatibility notes, variant and resource ownership policy, reference captures and target GPU measurements. Record environment, expected and observed results, evidence paths, and blocked or not-run checks separately from passes.
Boundaries
Do not silently change render pipelines, download art or add effect middleware. A headless or non-graphics run cannot certify visual shader correctness. Engine guidance applies to engine-owned code; independent services retain their architecture contracts.
References
- Unity render pipelines. Use the documentation matching the installed project version.
- MaterialPropertyBlock. Use the documentation matching the installed project version.
04 同仓库更多 Skills
verify-web3-game-lifecycle
Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.
verify-onchain-game-assets
Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.
plan-web3-game-assets
Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.
integrate-game-wallets
Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.
integrate-game-asset-trading
Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.
build-evm-game-contracts
Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.