besty0728/unity-decal
Create and configure URP Decal Projectors plus DecalRendererFeature setup — project decals onto surfaces and wire the renderer feature. Use when adding decals in URP, configuring a Decal Projector, or enabling the Decal Renderer Feature, even if the user just says "贴花" or "decal". 创建与配置 URP Decal Projector 并设置 DecalRendererFeature(将贴花投射到表面、接入渲染器特性);当用户要在 URP 中添加贴花、配置 Decal Projector 或启用 Decal Renderer Feature 时使用。
npx skills add https://github.com/Besty0728/Unity-Skills --skill unity-decal
URP Decal Projector creation and configuration (URP only; HDRP decal APIs are not covered here).
decal_get_info, decal_find_all) are SkillMode.SemiAuto — they run in all three modes without grant.decal_create, decal_set_properties, decal_set_properties_batch, decal_ensure_renderer_feature) are SkillMode.FullAuto — under Approval they need user grant (grant triggers one server-side execute returning the result); under Auto / Bypass they execute directly.decal_delete carries SkillOperation.Delete and is auto-forbidden in Approval / Auto modes (NeverInSemi). Only Bypass or the user-managed Allowlist can run it.This module is compiled against com.unity.render-pipelines.universal (URP). When URP is not installed, every skill returns a stub { error: "Universal Render Pipeline package … is not installed." } (RenderPipelineSkillsCommon.NoURP()). The stub is a diagnostic payload, not a permission denial — it does not require grant and is not treated as NeverInSemi.
Routing:
urpRuntime-first rules:
decal_ensure_renderer_feature before assuming the current URP renderer is decal-readydecal_get_info / decal_find_all to discover real projector state before editingdecal_set_properties_batch expects items to be a JSON array stringdecal_createCreate a Decal Projector.
decal_get_infoInspect a Decal Projector.
decal_set_propertiesModify Decal Projector properties.
decal_find_allList Decal Projectors in the scene.
decal_deleteDelete a Decal Projector GameObject.
decal_set_properties_batchBatch-edit Decal Projectors.
decal_ensure_renderer_featureEnsure the target URP renderer has a DecalRendererFeature.
Exact names, parameters, defaults, and returns are defined by GET /skills/schema or unity_skills.get_skill_schema(), not by this file.
Take besty0728/unity-decal from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.