[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMJJPS67K9E4Z00HHDV41R":3,"skill-same:01M7CMJJPS67K9E4Z00HHDV41R":106},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M7CMJJPS67K9E4Z00HHDV41R","unity-interaction",null,"Press-to-use in 2D and 3D: doors, switches, gates, pickups, use prompts, point-and-click hotspots.","tipoLi5890\u002Funity-dev-skills","tipoLi5890","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F177803612?v=4","01M7CMD7DHGZ09CB53CRFHAA34","Li, ching yu","01M7CMD7E70K5RAHWWZVYX9YMG",2,"MIT","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-interaction\ndescription: >-\n  Press-to-use in 2D and 3D: doors, switches, gates, pickups, use prompts,\n  point-and-click hotspots.\n---\n\n# unity-interaction — detection is chosen by perspective; the contract is the same everywhere\n\n> **Finding what is in reach is the easy tenth.** The complaints — the prompt that flickers, the\n> gate that opens twice, the switch used through a wall, the parcel counted twice — are never\n> about the overlap call. They are about selecting **one** target and keeping it, and about who\n> owns the change. The fix is the same in every view: the interactor selects and delivers a\n> press; the interactable decides what the press means, and refuses on its own.\n\n## Symptom → where to look\n\n| The report | Go to |\n|---|---|\n| \"press E to open the door\", locked doors, switches, gates | §1, `reference\u002Fdoors-and-switches.md` |\n| \"the prompt flickers between two objects\", \"I can use the switch through the wall\" | `reference\u002Fdetection-choice.md` |\n| \"the door opens twice\" | `reference\u002Finteractable-contract.md` (the double-press guard) |\n| \"the coin gets collected twice\", pickups | `reference\u002Fpickups.md` |\n| \"walk over and then use it\", point-and-click hotspots | `reference\u002Fpoint-and-click.md` |\n| The use prompt: placement, glyph, hold ring | `reference\u002Fprompts.md` |\n| Which detection for this camera | §0 |\n\n```\nRunInput ──► interactor ──────────────► interactable ───────────► the world\n(struct)     who is in reach             may this actor use me?    gate opens, parcel counted\n             which ONE is selected       what does using me do?    events out: audio, feel, UI\n             spends one press on it      refuses by itself\n```\n\n| Half | Knows | Never knows |\n|---|---|---|\n| Interactor — `resources\u002FInteractor2D.cs`, `resources\u002FInteractor3D.cs` | Reach, facing, layers, the selected target, the press, the hold timer | What a switch does, whether a gate is locked, any item id |\n| Interactable — `resources\u002FIInteractable.cs` and what derives from it | Its own state, its rule for refusing, what changes when used | Buttons, cameras, distance, what else is nearby |\n\nOne interface, one selected target, one prompt. What varies with the camera is only how the\ncandidates are found.\n\n---\n\n## 0. Pick the detection\n\nBy what the player points with — not by whether the project is 2D or 3D. If the project has not\nnamed its perspective, `unity-gameplay` does that first.\n\n| Perspective | The player points with | Detection | Use |\n|---|---|---|---|\n| Side view | Standing at it | Trigger collider on the runner + a list | `Interactor2D`, `TriggerList` |\n| Top-down | The body and its facing | The same list, or a circle on a tick with a cone | `Interactor2D`, either mode, `Facing` assigned |\n| Third person, overhead | The body's forward | Sphere on a 0.1 s tick, 60° cone, one line of sight | `Interactor3D`, `Overlap` |\n| First person | The centre of the screen | One ray from the camera, first hit only | `Interactor3D`, `Ray` |\n| Cells | The cell in front | A board lookup, no physics | Four lines in the turn handler |\n| Pointer hotspots | The cursor | A hit under the pointer, then walk there | A queue of one intent |\n\nA screen-centre ray in third person selects things the runner is nowhere near; an overlap\nsphere in first person names the switch beside the one being looked at. Each row, with its\nnumbers: `reference\u002Fdetection-choice.md`.\n\n## 1. Start here — the gate room\n\n1. **Layers.** `Interactable` for switches and interact pickups, `World` for walls, `Runner`\n   for the runner. The interactor's `interactable` mask holds the first, `blockers` the second,\n   and the runner's layer is in neither.\n2. **The gate.** `GateTarget` on the gate, `blocker` assigned to its collider: opens 3 units\n   in 1 s, and the collider is off only in `Open`.\n3. **The switch.** `GateSwitch` beside a collider on `Interactable`, `mode` Toggle, the gate\n   dragged into `targets` — a reference, never a name.\n4. **The runner.** `Interactor3D` beside its `RunInputSource`: `Overlap`, `range` 2,\n   `halfAngle` 60. It spends `RunButton.Interact` in `FixedUpdate`.\n5. **Register with the probe**, where the game wires its harness:\n\n```csharp\nGameProbe.Register(\"target\", () => interactor.TargetName);     \u002F\u002F \"\" when nothing is selected\nGameProbe.Count(\"interactions\", () => interactor.Interactions);\nGameProbe.Count(\"gateOpens\", () => gate.OpenCount);\nGameProbe.SetState(() => gate.State.ToString());               \u002F\u002F Closed · Opening · Open · Closing\n```\n\n6. **Prove it** with `templates\u002FInteractionJourneyTest.cs`, which builds its own rooms:\n\n| Test | Asserts |\n|---|---|\n| `Runner_WalksIntoReach_AndOnlyThenIsTheSwitchSelected` | Nothing selected and a press ignored at 5.8 units; the switch selected by 2, never beyond |\n| `Press_OpensTheGateOnce_AndASecondPressWhileItOpensDoesNothing` | `gateOpens` is 1; state only goes Closed → Opening → Open; the second press is a refusal |\n| `Switch_BehindTheRunner_IsNotSelected` | In reach but 180° off the facing: no target |\n| `Selection_HoldsBetweenTwoEqualSwitches` (2D) | The runner shifts 0.1 units between mirrored switches; the selection never changes |\n| `Press_UsesOnlyTheSelectedSwitch_AndNothingOutOfReach` (2D) | One use on the selected switch, none on its neighbour, none after leaving the sensor |\n\n7. **Show the gate can fail.** `INTERACTION_JOURNEY_BREAK=range`, `=reentry`, `=cone` and\n   `=flicker` each turn one test red. A journey nobody has seen fail proves nothing.\n8. **Add the prompt last**, as a view of `interactor.Target` — `reference\u002Fprompts.md`.\n\nThe depot is the same loop with `Interactor2D` and a trigger circle on the runner; the sorting\nyard needs no interactor at all.\n\n## Load what the situation needs\n\n| The situation | Read |\n|---|---|\n| The interface; who owns the state change; the guard against a double press; hold and cancel; cooldown; events for audio and feel; another actor using the same switch | `reference\u002Finteractable-contract.md` |\n| Which detection for which camera; scoring by distance and angle; priority; a prompt that flickers; a switch used through a wall; interactable layers; the cell in front | `reference\u002Fdetection-choice.md` |\n| World-space or screen-space; following the target; the glyph for the device in hand; dimmed when blocked; the hold ring; highlights | `reference\u002Fprompts.md` |\n| Touch or interact pickups; counted twice; a magnet; back to the pool; an inventory as data; taken for good across a save | `reference\u002Fpickups.md` |\n| A switch wired by reference; once, toggle or pressure plate; the gate's four states and its collider; locks and keys; sentries routing round a shut gate; saving it | `reference\u002Fdoors-and-switches.md` |\n| Hotspots; walk there, then act; a queue of one; overlapping hotspots; cursor verbs; gamepad and touch | `reference\u002Fpoint-and-click.md` |\n| Sphere, ray and line casts; trigger flags; a query that misses | `unity-physics-3d` → `reference\u002Fqueries.md` |\n| Circle and point overlaps, contact filters, the list overloads | `unity-physics-2d` → `reference\u002Fqueries-2d.md` |\n| Which layers exist and which pairs report | `unity-physics-2d` → `reference\u002Flayers-and-matrix.md` |\n| The input struct, the press latch, `TryUse`, a scripted driver | `unity-input` → `reference\u002Freading-input.md` |\n| The pointer as a world point; a click on UI against a click on the world | `unity-input` → `reference\u002Fpointer-and-aim.md` |\n| Binding display strings and glyph families | `unity-input` → `reference\u002Frebinding-and-devices.md` |\n| The cell ahead on rectangular and hexagonal boards | `unity-2d-grid` → `reference\u002Fneighbours-and-range.md` |\n| Which UI system draws the prompt | `unity-game-ui` |\n| Pools for pickups and their effects | `unity-scene-flow` → `reference\u002Fpooling.md` |\n| The save file that holds \"taken\" and \"on\" | `unity-scene-flow` → `reference\u002Fsave-format.md` |\n| Carving a shut gate out of the NavMesh | `unity-navigation` |\n| Walking to a hotspot in 2D | `unity-game-ai` → `reference\u002Fpathfinding-2d.md` |\n| Draw order that decides the hotspot on top | `unity-2d-rendering` → `reference\u002Fsort-order.md` |\n| Sound and effect stacks fired from the events | `unity-game-feel` → `reference\u002Ffeedback-stack.md` |\n| Journeys, the probe, proving a gate can fail | `unity-play-harness` → `reference\u002Fjourneys.md` |\n\nCopy `resources\u002FIInteractable.cs` and the files the game needs into a Runtime assembly beside\n`RunInput.cs` (`unity-input` → `resources\u002F`), and the journey from `templates\u002F` into a PlayMode\ntest assembly that also references the harness. The runtime files need no package — both\nphysics modules are built in; the journey needs `com.unity.test-framework`. Components that read\nfields in `Awake` (`GateTarget`) are built inactive from code, configured, then activated.\n\n---\n\n## Discipline\n\n- **The interactor never changes the world.** It selects and delivers. A `switch` on the\n  target's type in the player script is the first step to a player that knows every object.\n- **The guard lives in the interactable, inside `Interact`.** Re-checked on every call, so a\n  second press, a second actor and a replay all meet the same refusal.\n- **One selected target, and everything reads it.** The prompt, the highlight and the press\n  use `Target`; none of them runs a query of its own.\n- **Hysteresis is not optional.** Keep the target to `range × 1.15` and make a challenger win\n  by 0.15, or two equal switches swap on every sway.\n- **Condition first, then `TryUse`, in `FixedUpdate`.** `Target != null && TryUse(Interact)`\n  honours a press made just before arrival; never a device, never `Update`.\n- **First hit only on a ray; one line of sight on an overlap.** Skipping the wall is how a\n  switch is used through it.\n- **Pass the trigger flag on every query.** A switch is often a trigger and a wall never is.\n- **A sensor is not a body.** A reach circle on the runner must not collect a touch pickup.\n- **The pickup marks itself taken before it tells anyone, and never calls `Destroy`.**\n- **A switch owns a bool; a gate owns four states.** The collider follows the state, not the\n  picture, and \"exactly once\" is `OpenCount == 1`.\n- **Wire by reference.** A name, a tag or a search opens the wrong gate after the first rename.\n- **Keys and items are ids.** The lock asks the actor for an interface, not for a class.\n- **Events out carry no rules.** Remove every listener and the level still completes.\n- **Save the cause, derive the effect.** The switch's bool is saved; the gate is snapped from it.\n- **The pointer never acts at a distance.** A click queues an intent; the runner arrives; then\n  the same `Interact` runs.\n- **The human keeps the feel verdict.** The journey shows the gate opened once; whether a\n  0.4 s hold feels deliberate is a judgement.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Damage, hit and hurt boxes, knock-back, a crate that breaks when struck | `unity-combat` |\n| How a cast or an overlap behaves; a trigger callback that never fires | `unity-physics-3d`, `unity-physics-2d` |\n| The actions asset, the reader, rebinding, the on-screen interact button | `unity-input` |\n| Building the prompt's canvas or UXML; type size; HUD layout | `unity-game-ui`, then `unity-ui-ugui` or `unity-ui-toolkit` |\n| The verb in another language | `unity-localization` |\n| Moving the runner to the switch | `unity-3d-controller`, `unity-2d-controller` |\n| Cell coordinates, occupancy, pushing a pickup one cell | `unity-2d-grid` |\n| A sentry that sees, patrols or decides to use a switch | `unity-game-ai` |\n| NavMesh obstacles, links and agents | `unity-navigation` |\n| Pools, save files, scene loading, pause | `unity-scene-flow` |\n| Screen shake, flashes, the sound a gate makes | `unity-game-feel`, `unity-audio` |\n| The reach and open animations | `unity-animation` |\n| Recorders, situations, the probe contract | `unity-play-harness` |\n\nDialogue trees, quest logs and shop screens are game systems built on this contract: an\ninteractable whose `OnInteract` opens them, and nothing here that models them.\n","# unity-interaction — detection is chosen by perspective; the contract is the same everywhere\n\n> **Finding what is in reach is the easy tenth.** The complaints — the prompt that flickers, the\n> gate that opens twice, the switch used through a wall, the parcel counted twice — are never\n> about the overlap call. They are about selecting **one** target and keeping it, and about who\n> owns the change. The fix is the same in every view: the interactor selects and delivers a\n> press; the interactable decides what the press means, and refuses on its own.\n\n## Symptom → where to look\n\n| The report | Go to |\n|---|---|\n| \"press E to open the door\", locked doors, switches, gates | §1, `reference\u002Fdoors-and-switches.md` |\n| \"the prompt flickers between two objects\", \"I can use the switch through the wall\" | `reference\u002Fdetection-choice.md` |\n| \"the door opens twice\" | `reference\u002Finteractable-contract.md` (the double-press guard) |\n| \"the coin gets collected twice\", pickups | `reference\u002Fpickups.md` |\n| \"walk over and then use it\", point-and-click hotspots | `reference\u002Fpoint-and-click.md` |\n| The use prompt: placement, glyph, hold ring | `reference\u002Fprompts.md` |\n| Which detection for this camera | §0 |\n\n```\nRunInput ──► interactor ──────────────► interactable ───────────► the world\n(struct)     who is in reach             may this actor use me?    gate opens, parcel counted\n             which ONE is selected       what does using me do?    events out: audio, feel, UI\n             spends one press on it      refuses by itself\n```\n\n| Half | Knows | Never knows |\n|---|---|---|\n| Interactor — `resources\u002FInteractor2D.cs`, `resources\u002FInteractor3D.cs` | Reach, facing, layers, the selected target, the press, the hold timer | What a switch does, whether a gate is locked, any item id |\n| Interactable — `resources\u002FIInteractable.cs` and what derives from it | Its own state, its rule for refusing, what changes when used | Buttons, cameras, distance, what else is nearby |\n\nOne interface, one selected target, one prompt. What varies with the camera is only how the\ncandidates are found.\n\n---\n\n## 0. Pick the detection\n\nBy what the player points with — not by whether the project is 2D or 3D. If the project has not\nnamed its perspective, `unity-gameplay` does that first.\n\n| Perspective | The player points with | Detection | Use |\n|---|---|---|---|\n| Side view | Standing at it | Trigger collider on the runner + a list | `Interactor2D`, `TriggerList` |\n| Top-down | The body and its facing | The same list, or a circle on a tick with a cone | `Interactor2D`, either mode, `Facing` assigned |\n| Third person, overhead | The body's forward | Sphere on a 0.1 s tick, 60° cone, one line of sight | `Interactor3D`, `Overlap` |\n| First person | The centre of the screen | One ray from the camera, first hit only | `Interactor3D`, `Ray` |\n| Cells | The cell in front | A board lookup, no physics | Four lines in the turn handler |\n| Pointer hotspots | The cursor | A hit under the pointer, then walk there | A queue of one intent |\n\nA screen-centre ray in third person selects things the runner is nowhere near; an overlap\nsphere in first person names the switch beside the one being looked at. Each row, with its\nnumbers: `reference\u002Fdetection-choice.md`.\n\n## 1. Start here — the gate room\n\n1. **Layers.** `Interactable` for switches and interact pickups, `World` for walls, `Runner`\n   for the runner. The interactor's `interactable` mask holds the first, `blockers` the second,\n   and the runner's layer is in neither.\n2. **The gate.** `GateTarget` on the gate, `blocker` assigned to its collider: opens 3 units\n   in 1 s, and the collider is off only in `Open`.\n3. **The switch.** `GateSwitch` beside a collider on `Interactable`, `mode` Toggle, the gate\n   dragged into `targets` — a reference, never a name.\n4. **The runner.** `Interactor3D` beside its `RunInputSource`: `Overlap`, `range` 2,\n   `halfAngle` 60. It spends `RunButton.Interact` in `FixedUpdate`.\n5. **Register with the probe**, where the game wires its harness:\n\n```csharp\nGameProbe.Register(\"target\", () => interactor.TargetName);     \u002F\u002F \"\" when nothing is selected\nGameProbe.Count(\"interactions\", () => interactor.Interactions);\nGameProbe.Count(\"gateOpens\", () => gate.OpenCount);\nGameProbe.SetState(() => gate.State.ToString());               \u002F\u002F Closed · Opening · Open · Closing\n```\n\n6. **Prove it** with `templates\u002FInteractionJourneyTest.cs`, which builds its own rooms:\n\n| Test | Asserts |\n|---|---|\n| `Runner_WalksIntoReach_AndOnlyThenIsTheSwitchSelected` | Nothing selected and a press ignored at 5.8 units; the switch selected by 2, never beyond |\n| `Press_OpensTheGateOnce_AndASecondPressWhileItOpensDoesNothing` | `gateOpens` is 1; state only goes Closed → Opening → Open; the second press is a refusal |\n| `Switch_BehindTheRunner_IsNotSelected` | In reach but 180° off the facing: no target |\n| `Selection_HoldsBetweenTwoEqualSwitches` (2D) | The runner shifts 0.1 units between mirrored switches; the selection never changes |\n| `Press_UsesOnlyTheSelectedSwitch_AndNothingOutOfReach` (2D) | One use on the selected switch, none on its neighbour, none after leaving the sensor |\n\n7. **Show the gate can fail.** `INTERACTION_JOURNEY_BREAK=range`, `=reentry`, `=cone` and\n   `=flicker` each turn one test red. A journey nobody has seen fail proves nothing.\n8. **Add the prompt last**, as a view of `interactor.Target` — `reference\u002Fprompts.md`.\n\nThe depot is the same loop with `Interactor2D` and a trigger circle on the runner; the sorting\nyard needs no interactor at all.\n\n## Load what the situation needs\n\n| The situation | Read |\n|---|---|\n| The interface; who owns the state change; the guard against a double press; hold and cancel; cooldown; events for audio and feel; another actor using the same switch | `reference\u002Finteractable-contract.md` |\n| Which detection for which camera; scoring by distance and angle; priority; a prompt that flickers; a switch used through a wall; interactable layers; the cell in front | `reference\u002Fdetection-choice.md` |\n| World-space or screen-space; following the target; the glyph for the device in hand; dimmed when blocked; the hold ring; highlights | `reference\u002Fprompts.md` |\n| Touch or interact pickups; counted twice; a magnet; back to the pool; an inventory as data; taken for good across a save | `reference\u002Fpickups.md` |\n| A switch wired by reference; once, toggle or pressure plate; the gate's four states and its collider; locks and keys; sentries routing round a shut gate; saving it | `reference\u002Fdoors-and-switches.md` |\n| Hotspots; walk there, then act; a queue of one; overlapping hotspots; cursor verbs; gamepad and touch | `reference\u002Fpoint-and-click.md` |\n| Sphere, ray and line casts; trigger flags; a query that misses | `unity-physics-3d` → `reference\u002Fqueries.md` |\n| Circle and point overlaps, contact filters, the list overloads | `unity-physics-2d` → `reference\u002Fqueries-2d.md` |\n| Which layers exist and which pairs report | `unity-physics-2d` → `reference\u002Flayers-and-matrix.md` |\n| The input struct, the press latch, `TryUse`, a scripted driver | `unity-input` → `reference\u002Freading-input.md` |\n| The pointer as a world point; a click on UI against a click on the world | `unity-input` → `reference\u002Fpointer-and-aim.md` |\n| Binding display strings and glyph families | `unity-input` → `reference\u002Frebinding-and-devices.md` |\n| The cell ahead on rectangular and hexagonal boards | `unity-2d-grid` → `reference\u002Fneighbours-and-range.md` |\n| Which UI system draws the prompt | `unity-game-ui` |\n| Pools for pickups and their effects | `unity-scene-flow` → `reference\u002Fpooling.md` |\n| The save file that holds \"taken\" and \"on\" | `unity-scene-flow` → `reference\u002Fsave-format.md` |\n| Carving a shut gate out of the NavMesh | `unity-navigation` |\n| Walking to a hotspot in 2D | `unity-game-ai` → `reference\u002Fpathfinding-2d.md` |\n| Draw order that decides the hotspot on top | `unity-2d-rendering` → `reference\u002Fsort-order.md` |\n| Sound and effect stacks fired from the events | `unity-game-feel` → `reference\u002Ffeedback-stack.md` |\n| Journeys, the probe, proving a gate can fail | `unity-play-harness` → `reference\u002Fjourneys.md` |\n\nCopy `resources\u002FIInteractable.cs` and the files the game needs into a Runtime assembly beside\n`RunInput.cs` (`unity-input` → `resources\u002F`), and the journey from `templates\u002F` into a PlayMode\ntest assembly that also references the harness. The runtime files need no package — both\nphysics modules are built in; the journey needs `com.unity.test-framework`. Components that read\nfields in `Awake` (`GateTarget`) are built inactive from code, configured, then activated.\n\n---\n\n## Discipline\n\n- **The interactor never changes the world.** It selects and delivers. A `switch` on the\n  target's type in the player script is the first step to a player that knows every object.\n- **The guard lives in the interactable, inside `Interact`.** Re-checked on every call, so a\n  second press, a second actor and a replay all meet the same refusal.\n- **One selected target, and everything reads it.** The prompt, the highlight and the press\n  use `Target`; none of them runs a query of its own.\n- **Hysteresis is not optional.** Keep the target to `range × 1.15` and make a challenger win\n  by 0.15, or two equal switches swap on every sway.\n- **Condition first, then `TryUse`, in `FixedUpdate`.** `Target != null && TryUse(Interact)`\n  honours a press made just before arrival; never a device, never `Update`.\n- **First hit only on a ray; one line of sight on an overlap.** Skipping the wall is how a\n  switch is used through it.\n- **Pass the trigger flag on every query.** A switch is often a trigger and a wall never is.\n- **A sensor is not a body.** A reach circle on the runner must not collect a touch pickup.\n- **The pickup marks itself taken before it tells anyone, and never calls `Destroy`.**\n- **A switch owns a bool; a gate owns four states.** The collider follows the state, not the\n  picture, and \"exactly once\" is `OpenCount == 1`.\n- **Wire by reference.** A name, a tag or a search opens the wrong gate after the first rename.\n- **Keys and items are ids.** The lock asks the actor for an interface, not for a class.\n- **Events out carry no rules.** Remove every listener and the level still completes.\n- **Save the cause, derive the effect.** The switch's bool is saved; the gate is snapped from it.\n- **The pointer never acts at a distance.** A click queues an intent; the runner arrives; then\n  the same `Interact` runs.\n- **The human keeps the feel verdict.** The journey shows the gate opened once; whether a\n  0.4 s hold feels deliberate is a judgement.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Damage, hit and hurt boxes, knock-back, a crate that breaks when struck | `unity-combat` |\n| How a cast or an overlap behaves; a trigger callback that never fires | `unity-physics-3d`, `unity-physics-2d` |\n| The actions asset, the reader, rebinding, the on-screen interact button | `unity-input` |\n| Building the prompt's canvas or UXML; type size; HUD layout | `unity-game-ui`, then `unity-ui-ugui` or `unity-ui-toolkit` |\n| The verb in another language | `unity-localization` |\n| Moving the runner to the switch | `unity-3d-controller`, `unity-2d-controller` |\n| Cell coordinates, occupancy, pushing a pickup one cell | `unity-2d-grid` |\n| A sentry that sees, patrols or decides to use a switch | `unity-game-ai` |\n| NavMesh obstacles, links and agents | `unity-navigation` |\n| Pools, save files, scene loading, pause | `unity-scene-flow` |\n| Screen shake, flashes, the sound a gate makes | `unity-game-feel`, `unity-audio` |\n| The reach and open animations | `unity-animation` |\n| Recorders, situations, the probe contract | `unity-play-harness` |\n\nDialogue trees, quest logs and shop screens are game systems built on this contract: an\ninteractable whose `OnInteract` opens them, and nothing here that models them.\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-interaction",0,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills","https:\u002F\u002Fgithub.com\u002FtipoLi5890","https:\u002F\u002Ftipoli5890.github.io\u002F","2026-11-10 09:16:41",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tipoLi5890\u002Funity-dev-skills --skill unity-interaction",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-interaction",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-interaction","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002FSKILL.md",true,[46,52,56,60,64,68,72,78,82,86,90,94,98,102],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fdetection-choice.md","REFERENCE","参考文档",10542,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Fdetection-choice.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fdoors-and-switches.md",10369,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Fdoors-and-switches.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Finteractable-contract.md",10609,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Finteractable-contract.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fpickups.md",9314,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Fpickups.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fpoint-and-click.md",10500,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Fpoint-and-click.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fprompts.md",9252,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Freference\u002Fprompts.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002FGateSwitch.cs","OTHER","其他",5897,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FGateSwitch.cs",{"path":79,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FGateTarget.cs",6269,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FGateTarget.cs",{"path":83,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":84,"sourceHtmlUrl":85},"resources\u002FIInteractable.cs",16402,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FIInteractable.cs",{"path":87,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":88,"sourceHtmlUrl":89},"resources\u002FInteractor2D.cs",5950,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FInteractor2D.cs",{"path":91,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002FInteractor3D.cs",5077,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FInteractor3D.cs",{"path":95,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":96,"sourceHtmlUrl":97},"resources\u002FPickup.cs",5709,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FPickup.cs",{"path":99,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":100,"sourceHtmlUrl":101},"resources\u002FPickupBag.cs",3062,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Fresources\u002FPickupBag.cs",{"path":103,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":104,"sourceHtmlUrl":105},"templates\u002FInteractionJourneyTest.cs",29401,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-interaction\u002Ftemplates\u002FInteractionJourneyTest.cs",[107,114,121,128,135,142],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M7CMNYXQNW14ST64EYEEZ5V5","unity-web-release","Ship a WebGL\u002FWebGPU build: shrink the download, Brotli server headers, Safari and iPhone memory.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-web-release\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M7CMNTHD1EA70CCJ2F9FN3HT","unity-vivox","Vivox voice and text chat: channels, positional voice, mute and push-to-talk, mic permission.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-vivox\u002FSKILL.md",[],[],{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":19},"01M7CMNPHPRQZ7K1FES2953DRQ","unity-urp-migration","Migrate a Built-in project to URP, or fix a half-moved one: pink materials, PPv2, old shaders.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-urp-migration\u002FSKILL.md",[],[],{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":19},"01M7CMNJ756DK4V0D50HMAZYQW","unity-ui-ugui","Canvas UI (uGUI): CanvasScaler, RectTransform anchors, Layout Groups, ScrollView, UI built from C#.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-ugui\u002FSKILL.md",[],[],{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":141,"publishedAt":19},"01M7CMNDESZN79EK5FRDXCA2WA","unity-ui-toolkit","UI Toolkit (UXML, USS, UIDocument): flex layout, binding, custom elements, editor windows.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ui-toolkit\u002FSKILL.md",[],[],{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":19},"01M7CMN8GBV07K0YCY07BJ6A1W","unity-ugs","Unity Gaming Services API: which package, init and sign-in order, Cloud Save, Cloud Code, Remote Config.","https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-ugs\u002FSKILL.md",[],[]]