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.
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.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 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
- Prompt
- Triggers
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.
