Skip to content
Development
Skill

/decal

Create and configure URP Decal Projectors. 创建与配置 URP Decal Projector。

From plugin
unity-skills
1.6k74 skills5 commands
Install
$ npx -y skills add Besty0728/Unity-Skills --skill decal --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/decal

Context preview

The summary Claude sees to decide when to auto-load this skill.

Create and configure URP Decal Projectors. 创建与配置 URP Decal Projector。

SKILL.md

decal.SKILL.md
name: unity-decal
description: Create and configure URP Decal Projectors. 创建与配置 URP Decal Projector。

Triggers

  • Adding decals in URP
  • Configuring a Decal Projector
  • Enabling the Decal Renderer Feature
  • 在 URP 中添加贴花、配置 Decal Projector、启用 Decal Renderer Feature

Decal Skills

URP Decal Projector creation and configuration (URP only; HDRP decal APIs are not covered here).

Operating Mode

  • Query skills (`decal_get_info`, `decal_find_all`) are `SkillMode.SemiAuto` — they run in all three modes without grant.
  • Mutating skills (`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.

URP Package Stub

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.

Guardrails

**Routing**:

  • For renderer feature management in general: `urp`
  • For DecalProjector scene operations: this module

**Runtime-first rules**:

  • Call `decal_ensure_renderer_feature` before assuming the current URP renderer is decal-ready
  • Use `decal_get_info` / `decal_find_all` to discover real projector state before editing
  • `decal_set_properties_batch` expects `items` to be a JSON array string
  • This module targets the URP Decal workflow first; do not assume HDRP decal APIs are covered here

Skills

`decal_create`

Create a Decal Projector.

`decal_get_info`

Inspect a Decal Projector.

`decal_set_properties`

Modify Decal Projector properties.

`decal_find_all`

List Decal Projectors in the scene.

`decal_delete`

Delete a Decal Projector GameObject.

`decal_set_properties_batch`

Batch-edit Decal Projectors.

`decal_ensure_renderer_feature`

Ensure the target URP renderer has a DecalRendererFeature.

---

Exact Signatures

Exact names, parameters, defaults, and returns are defined by `GET /skills/schema` or `unity_skills.get_skill_schema()`, not by this file.

Read more
Ships withunity-skills

REST API-based AI-driven Unity Editor Automation Engine Let AI control Unity scenes directly through Skills 🎉 We are now indexed by DeepWiki! Got questions? Check out the AI-generated docs → The current official maintenance baseline is Unity 2022.3+.

Get the whole plugin