unity-event

Diagnose and modify UnityEvent listeners on UI components like Button and Toggle.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-event-krl76
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-event
Source: https://github.com/krl76/MP-Study-Projects/tree/main/Practice1/.codex/skills/unity-skills/skills/event
Command: npx skills add https://github.com/krl76/MP-Study-Projects --skill unity-event-krl76

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

UnityEvent management helps you inspect, configure, and modify UI events such as Button.onClick without diving into code.

Core Features & Use Cases

  • Get persistent listeners on a UnityEvent and inspect their targets and methods.
  • Add, remove, or modify listeners for runtime or editor time.
  • List, invoke, or clear listeners, and manage listener state for individual entries.
  • Use cases include debugging UI flows, dynamically wiring buttons, and testing event-driven UI.

Quick Start

Provide the target GameObject, component, and event name to retrieve current listeners and available actions.

Frequently Asked Questions about unity-event

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I list listeners attached to a Unity UI Button onClick event?

To list Unity UI Button onClick listeners, provide the target GameObject, component, and event name to retrieve current persistent listeners. You can then inspect their specific targets and assigned methods without modifying code.

Can I add or remove persistent listeners on a UnityEvent at runtime?

You can add, remove, or modify persistent listeners on a UnityEvent at runtime. This allows dynamic event wiring for UI components like Buttons and Toggles, adjusting listener states deterministically through scripts.

What is the best way to debug Unity UI button click events without diving into code?

The best way to debug Unity UI button click events without code is using a UnityEvent inspector. It helps diagnose UI flows by listing, invoking, or clearing listeners and managing individual listener states directly.

Does this UnityEvent management approach work with Toggle components?

Yes, this UnityEvent management approach works with Toggle components. It supports editor-time configuration and runtime event wiring across Button, Toggle, and other UI components for event-driven UI testing.

How do I invoke a UnityEvent listener during UI debugging?

To invoke a UnityEvent listener during UI debugging, specify the target GameObject and event name. You can trigger events directly to test event-driven UI flows and verify listener behavior before deployment.