unity-event

Installation
SKILL.md

Unity Event Skills

Inspect and modify persistent listeners on UnityEvents (for example Button.onClick or Toggle.onValueChanged), the same listeners shown in the Inspector's event slots. Parameters come from the schema (GET /skills/schema?category=Event&wire=v2); execution and dryRun rules: root SKILL.md.

When to use

  • Hooking up UnityEvents in the Inspector
  • Wiring button or trigger callbacks
  • Scripting persistent listeners

Rules

  • Listeners added here are serialized with the prefab or scene, so they are configured at editor time. event_invoke is valid only in Play mode or at runtime; outside it, only EditorAndRuntime listeners fire.
  • The target locator is decided by the first one given, in this order: targetEntityId, targetInstanceId, targetPath, targetObjectName. A locator that finds nothing is an error and never falls back to the next one. A name shared by several objects takes the first and says so in resolutionNotes; a partial name matching several is refused with the candidates.
  • event_get_listeners returns targetEntityId for each listener. Pass it back to event_add_listener or event_set_listener to bind the exact same object (a specific component, an asset or a scene GameObject). target alone is only a name and can be shared.
  • An object argument passes a Unity object to a method. Among overloads of that method name, the one whose parameter type is closest to the argument's type is used, and the stored listener resolves the same way when it runs.
  • event_add_listener needs the exact component type and public method name on the target.
  • event_remove_listener and event_clear_listeners are delete-class: under Approval or Auto they return MODE_FORBIDDEN (the user must use Bypass or an Allowlist entry).
Installs
85
GitHub Stars
1.9K
First Seen
Mar 14, 2026