unity-event

Inspect and modify UnityEvent listeners on GameObjects in editor and runtime modes.

1|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/mufengbufeng/EF --skill unity-event-mufengbufeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-event
Source: https://github.com/mufengbufeng/EF/tree/main/UnityProject/.claude/skills/unity-skills/skills/event
Command: npx skills add https://github.com/mufengbufeng/EF --skill unity-event-mufengbufeng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Unity developers often struggle to inspect and modify UnityEvent listeners attached to GameObjects, especially in complex UI setups. This Skill provides a structured toolkit to view, add, remove, and invoke UnityEvent listeners without manually digging through the Inspector.

Core Features & Use Cases

  • event_get_listeners Get persistent listeners of a UnityEvent.
  • event_add_listener Add a persistent listener to a UnityEvent (Editor time) with configurable mode and argument types.
  • event_remove_listener Remove a persistent listener by index.
  • event_invoke Invoke a UnityEvent explicitly at runtime.
  • event_clear_listeners Remove all persistent listeners from a UnityEvent.
  • event_list_events List all UnityEvent fields on a component.

Quick Start

Open Unity, select a GameObject with a UnityEvent and use the provided commands to inspect or modify its listeners.

Frequently Asked Questions about unity-event

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

FAQPage Schema
How do I inspect UnityEvent listeners on a GameObject without digging through the Inspector?

You can inspect UnityEvent listeners by retrieving persistent listeners programmatically. This bypasses the Inspector, letting you view Button.onClick and other UnityEvent fields directly during development.

Can I add or remove persistent listeners to a UnityEvent at editor time?

Yes, you can add or remove persistent listeners at editor time. Adding listeners supports configurable modes and argument types, while removal targets a specific listener by its index.

How do I invoke a UnityEvent explicitly during runtime debugging?

You can invoke a UnityEvent explicitly at runtime to trigger its attached listeners. This helps verify event wiring and debug UI interactions without needing user input.

What is the best way to clear all listeners from a UnityEvent on a UI Button?

The best way to clear listeners from a UnityEvent is to remove all persistent listeners at once. This effectively wipes the event configuration for UI components like Buttons during debugging.

How do I list all UnityEvent fields available on a specific component?

You can list all UnityEvent fields on a component to identify available events for inspection. This provides a structured overview of every event field attached to your target GameObject.

Does this UnityEvent inspection approach work for runtime UI events and editor mode?

Yes, this approach supports both editor and runtime modes for managing UI events. It applies to runtime UI events like Button.onClick and other UnityEvent fields across Unity projects.