unity-event

Inspect and configure UnityEvent persistent listeners in editor workflows.

6|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-event-dycuong03
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-event
Source: https://github.com/dyCuong03/unity-agent-team/tree/main/.claude/skills/unity-skills/skills/event
Command: npx skills add https://github.com/dyCuong03/unity-agent-team --skill unity-event-dycuong03

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill solves the time-consuming, error-prone task of inspecting and configuring UnityEvent persistent listeners in Unity scenes and prefabs.

Core Features & Use Cases

  • List and inspect persistent listeners: Read what callbacks are currently wired for events like Button.onClick or Slider.onValueChanged, including counts and per-listener details.
  • Edit persistent listener configuration in-editor: Add new listeners, update call-state (Off / RuntimeOnly / EditorAndRuntime), batch-add multiple listeners, clear all listeners, and copy listeners between events.
  • Runtime invocation support (limited): Invoke a UnityEvent explicitly for runtime/Play mode testing without needing to trigger via the UI.

Example use case: You have a prefab variant where a Button.onClick calls the wrong method, and you need to list current persistent listeners, remove the incorrect one, set the call-state to RuntimeOnly, and add the correct handler method.

Quick Start

Use the unity-event skill to list the persistent listeners on the Button.onClick event for the target object you specify.

Frequently Asked Questions about unity-event

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

FAQPage Schema
How do I list and inspect persistent listeners on a Unity Button onClick event?

To inspect persistent listeners on a Unity Button onClick event, you can query the target object to read current callback counts and per-listener details. This provides a safe inventory discovery of wired methods without manually checking the Unity editor inspector.

Can I add or remove UnityEvent persistent listeners programmatically in the editor?

Yes, you can add, remove, and clear UnityEvent persistent listeners programmatically during editor-time wiring. This includes batch-adding multiple listeners and updating their call-state to Off, RuntimeOnly, or EditorAndRuntime for deterministic configuration.

What is the best way to copy persistent listeners between UnityEvent fields like onClick and onValueChanged?

The best way to copy persistent listeners between UnityEvent fields like onClick and onValueChanged is to use a tool that programmatically queries and duplicates the listener configurations. This ensures deterministic editor wiring without manual re-entry errors.

Does UnityEvent runtime invocation work in Play mode without triggering the UI?

UnityEvent runtime invocation works in Play mode by explicitly invoking the event for testing without needing to trigger the UI. This limited runtime support allows you to verify callback configuration safely outside of normal user interactions.

Why are my UnityEvent persistent listener write operations not working in Play mode?

UnityEvent persistent listener write and delete operations may not work in Play mode because the system enforces specific operation modes for safety. Editor-time wiring is enforced for modifying call-state, adding, and removing listeners to prevent runtime conflicts.

When do I need to configure UnityEvent call-state settings for scene prefabs?

You need to configure UnityEvent call-state settings for scene prefabs when you want to control whether callbacks execute at runtime, in the editor, or remain off. This ensures deterministic behavior across prefab variants and XR integration scenarios.