unity-event

Add, remove, and invoke UnityEvent listeners in Unity games.

Updated Apr 30, 2026
One-click install
npx skills add https://github.com/jinluli/EnglishLearnTool --skill unity-event-jinluli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-event
Source: https://github.com/jinluli/EnglishLearnTool/tree/main/Packages/SkillsForUnity/unity-skills~/skills/event
Command: npx skills add https://github.com/jinluli/EnglishLearnTool --skill unity-event-jinluli

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the management of UnityEvents, allowing users to inspect and modify UI events like Button.onClick, enhancing the development workflow.

Core Features & Use Cases

  • Event Inspection: Get persistent listeners of a UnityEvent.
  • Event Modification: Add, remove, and invoke UnityEvent listeners.
  • Use Case: When developing a Unity game, you can use this Skill to add event listeners to buttons for interactive functionality, such as changing scenes or playing sounds when clicked.

Quick Start

Use the unity-event skill to add a listener to the 'Button' GameObject's 'onClick' event that prints 'Button clicked!' to the console.

Frequently Asked Questions about unity-event

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

FAQPage Schema
How do I add an event listener to a UI Button onClick event in Unity?

To add a UI event listener in Unity, you can use this Skill to easily append functions to a Button's onClick event, enabling interactive responses like scene transitions or playing sounds when clicked.

What is a UnityEvent and when do I need to manage its persistent listeners?

A UnityEvent handles UI interactions like button clicks. You need to manage its persistent listeners when you want to programmatically inspect, add, or remove event-driven functions attached to GameObjects.

How do I inspect existing UnityEvent listeners on a GameObject?

You can inspect existing UnityEvent listeners on a GameObject by using this Skill to retrieve and view all persistent listeners currently wired to UI events, helping you understand current interactive behaviors.

Can I remove or modify specific event listeners from a Unity Button during gameplay?

Yes, you can remove or modify specific event listeners during gameplay. This Skill supports the dynamic removal and invocation of UnityEvent listeners, allowing you to alter UI behavior as the game runs.

Do I need a specific Unity environment setup to manage UnityEvents programmatically?

Yes, managing UnityEvents programmatically requires an active Unity environment and a foundational understanding of the UnityEvent system to correctly inspect, modify, and invoke UI event listeners.

Why is my UnityEvent not triggering when I click the UI Button?

If a UnityEvent is not triggering, you can use this Skill to inspect the Button's onClick event, verify that the persistent listener is correctly added, and programmatically invoke the event to debug the interaction.