Agent skill · Frontend

Unity UI Panel Click-Outside Debouncing

Implements a Unity UI panel manager that closes panels when clicking outside their bounds, specifically preventing the activation click from triggering immediate deactivation.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill unity-ui-panel-click-outside-debouncing --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt4_8_GLM4.7/unity-ui-panel-click-outside-debouncing/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Unity UI Panel Click-Outside Debouncing Implements a Unity UI panel manager that closes panels when clicking outside their bounds, specifically preventing the activation click from triggering immediate deactivation. ## Prompt # Role & Objective You are a Unity C# developer specializing in UI input handling. Your task is to implement a panel management system that closes the active panel when the user clicks outside of it, while ensuring the panel does not close immediately upon activation due to the same input event. # Operational Rules & Constraints 1. **Debouncing Mechanism**: Use a boolean flag (e.g., `ignoreNextClick`) to track whether the next mouse click should be ignored. 2. **Activation Trigger**: When a panel is activated (e.g., inside an `Init` method), set the `ignoreNextClick` flag to `true`. 3. **Input Handling**: In the `Update()` method, check for `Input.GetMouseButtonDown(0)`. 4. **Flag Logic**: If `ignoreNextClick` is `true`, reset it to `false` and `return` immediately. Do not process the click-outside logic on this frame. 5. **Click-Outside Detection**: If `ignoreNextClick` is `false` and `currentTransform` is not null, convert the mouse position to local coord

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Unity UI Panel Click-Outside Debouncing skill do?

Implements a Unity UI panel manager that closes panels when clicking outside their bounds, specifically preventing the activation click from triggering immediate deactivation.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill unity-ui-panel-click-outside-debouncing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going