com um clique
unity-event
Use when users want to inspect or modify UI events like Button.onClick.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Use when users want to inspect or modify UI events like Button.onClick.
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Use when working with a Unity project via MCP — creating or editing scenes, GameObjects, components, prefabs, materials, UI, lighting, navmesh, animations, terrain, C# scripts, or any other Unity Editor task.
Use when users want to run Unity tests or read test results.
Use when users want to enter play mode, select objects, undo/redo, or execute menu commands.
Use when creating, reading, editing, searching, validating, or deleting C# scripts in a Unity project.
Use when about to write or install a custom Editor script, add a [MenuItem], build a custom Editor window, or create a one-off Editor helper — to check whether a ready-to-paste template already exists in tooling/<domain>/ before reaching for Unity_CreateScript.
Use when users want to create Canvas, Button, Text, Image, or other UI elements.
Baseado na classificação ocupacional SOC
| name | unity-event |
| description | Use when users want to inspect or modify UI events like Button.onClick. |
Inspect and modify UnityEvents (e.g. Button.onClick).
DO NOT (common hallucinations):
event_create / event_trigger do not exist → UnityEvents are triggered at runtime, not from editor skillsevent_subscribe does not exist → use event_add_listenerevent_remove does not exist → use event_remove_listenerevent_add_listener requires exact component type and method name on the targetRouting:
xr module's xr_add_interaction_eventscript moduleevent_get_listenersGet persistent listeners of a UnityEvent. Parameters:
name / instanceId / path: Target GameObject locator.componentName (string): Component name.eventName (string): Event field name (e.g. "onClick").event_add_listenerAdd a persistent listener to a UnityEvent (Editor time). Parameters:
name / instanceId / path, componentName, eventName: Target event.targetObjectName, targetComponentName, methodName: Method to call.mode (string, optional): "RuntimeOnly", "EditorAndRuntime", "Off".argType (string, optional): "void", "int", "float", "string", "bool".floatArg, intArg, stringArg, boolArg: Argument value if needed.event_remove_listenerRemove a persistent listener by index. Parameters:
name / instanceId / path, componentName, eventName: Target event.index (int): Listener index.event_invokeInvoke a UnityEvent explicitly (Runtime only). Parameters:
name / instanceId / path, componentName, eventName: Target event.event_clear_listenersRemove all persistent listeners from a UnityEvent.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | null | GameObject name |
| instanceId | int | No | 0 | GameObject instance ID |
| path | string | No | null | GameObject hierarchy path |
| componentName | string | No | null | Component name |
| eventName | string | No | null | Event field name (e.g. "onClick") |
Returns: { success, removed }
event_set_listener_stateSet a listener's call state (Off, RuntimeOnly, EditorAndRuntime).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | null | GameObject name |
| instanceId | int | No | 0 | GameObject instance ID |
| path | string | No | null | GameObject hierarchy path |
| componentName | string | No | null | Component name |
| eventName | string | No | null | Event field name |
| index | int | No | 0 | Listener index |
| state | string | No | null | Call state: "Off", "RuntimeOnly", or "EditorAndRuntime" |
Returns: { success, index, state }
event_list_eventsList all UnityEvent fields on a component.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | null | GameObject name |
| instanceId | int | No | 0 | GameObject instance ID |
| path | string | No | null | GameObject hierarchy path |
| componentName | string | No | null | Component name |
Returns: { success, component, count, events }
event_add_listener_batchAdd multiple listeners at once. items: JSON array of {targetObjectName, targetComponentName, methodName}.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | null | GameObject name |
| instanceId | int | No | 0 | GameObject instance ID |
| path | string | No | null | GameObject hierarchy path |
| componentName | string | No | null | Component name |
| eventName | string | No | null | Event field name |
| items | string | No | null | JSON array of {targetObjectName, targetComponentName, methodName} |
Returns: { success, added, total }
event_copy_listenersCopy listeners from one event to another.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| sourceObject | string | Yes | - | Source GameObject name |
| sourceComponent | string | Yes | - | Source component name |
| sourceEvent | string | Yes | - | Source event field name |
| targetObject | string | Yes | - | Target GameObject name |
| targetComponent | string | Yes | - | Target component name |
| targetEvent | string | Yes | - | Target event field name |
Returns: { success, copied }
event_get_listener_countGet the number of persistent listeners on a UnityEvent.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | No | null | GameObject name |
| instanceId | int | No | 0 | GameObject instance ID |
| path | string | No | null | GameObject hierarchy path |
| componentName | string | No | null | Component name |
| eventName | string | No | null | Event field name |
Returns: { success, count }
Recipe path rule: ../../recipes/event/<command>.md