[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CMH6SRVCEH4GSZNF4VJEYT":3,"skill-same:01M7CMH6SRVCEH4GSZNF4VJEYT":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},"01M7CMH6SRVCEH4GSZNF4VJEYT","unity-combat",null,"Health and damage in 2D and 3D: hitboxes, double hits, invincibility, knock-back, projectiles.","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-combat\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: unity-combat\ndescription: >-\n  Health and damage in 2D and 3D: hitboxes, double hits, invincibility,\n  knock-back, projectiles.\n---\n\n# unity-combat — one swing is one damage event, and the engine will not enforce it for you\n\n> **`OnTriggerEnter` counts collider pairs, not attacks.** A sword that crosses a sentry with a\n> head and a torso hurtbox raises it twice; a target that steps out and back in raises it again;\n> `OnTriggerStay` raises it every step. Nothing in PhysX or Box2D knows what a swing is. So the\n> trigger is demoted to a question — what is in this volume now — and the **attack** keeps the\n> list of who it has already hit.\n\n## Symptom → where to look (first match wins; stop at the first cause you confirm)\n\n| Symptom | Go to |\n|---|---|\n| \"add health and damage\" — setting up the path | §0 |\n| \"the enemy takes damage twice from one swing\": one swing takes two hearts, or the count rises with the number of colliders | §1 |\n| \"the sword hits every frame\": health lost on every step the weapon touches | §1 |\n| \"my attack does not hit the enemy\": the swing passes through and nothing is reported | §2 |\n| It lands on the attacker, on a teammate, or through a wall | §2 |\n| The window stays open after the attack was interrupted | §3 |\n| \"spikes drain all my health\": every heart lost at once on a hazard, or is hit again while flying back | §4 |\n| \"the shot goes straight through the sentry\": a fast shot passes through the sentry or a thin wall | §5 |\n| \"knockback pushes it into the wall\": the target ends inside a wall, or it does not move at all | §6 |\n| Hits land and nothing shows: no flash, no pause, no sound | `unity-game-feel` |\n\nEvery hit in the game takes the same path, and each stage has one job:\n\n```\nwindow ────────► hitbox ─────────────► DamageInfo ──► IDamageable ───────► events\nOpen() \u002F Close()  swing id + hit list   a struct       Health: team,        Damaged, Died\nfrom the Animator query per fixed step  on the stack   invincibility,       presentation and\nor a game timer   who, once per swing                  death as a state     the controller's push\n```\n\n| Stage | File | Decides | Never decides |\n|---|---|---|---|\n| Window | the game's attacking state, or `unity-animation`'s window behaviour | When the active frames start and end | Who is hit |\n| Attack | `resources\u002FHitbox3D.cs`, `Hitbox2D.cs`, `Projectile3D.cs`, `Projectile2D.cs` | Who is offered the hit, once per swing | Whether it lands |\n| Message | `resources\u002FDamageInfo.cs` | Nothing — it carries amount, source, team, point, direction, knock-back, stun, tags, swing id | — |\n| Receiver | `resources\u002FHealth.cs` | Whether it lands: alive, other team, not invincible | Movement, effects, destruction |\n\n## 0. Set up the path\n\n1. **Three layers beyond the level's own**: `Body` (what the solver pushes), `Hurtbox` (where a\n   character can be hit), `Hitbox` (trigger hitboxes only). `Hurtbox` collides with nothing in\n   the matrix: a query reads its mask, not the matrix. The matrices for 3D and 2D:\n   `reference\u002Fhit-and-hurt-layers.md`.\n2. **The receiver goes on the root**, hurtboxes on its children: `Health` on the sentry, a\n   trigger `BoxCollider` on the torso bone and a `SphereCollider` on the head, both on\n   `Hurtbox`. Size them from constants, never from the renderer — `unity-rigged-character` →\n   `reference\u002Fgameplay-rig.md`.\n3. **The hitbox is an empty child with `Hitbox3D`** (or `Hitbox2D`), `hurtMask` = `Hurtbox`,\n   `team` set. No collider, no body.\n4. **Open and close it from the window** — `AttackWindowBehaviour` on the attack state (open 0.25,\n   close 0.55) calling a small `IAttackWindowReceiver` beside the Animator — and from the game's\n   own state on interruption (`StrikeWindow`: `reference\u002Fattack-windows.md`).\n5. **The controller listens for the hit** and moves itself (`health.Damaged += info =>\n   motor.Push(info.KnockbackVelocity, info.stun)`, the one writer); `Died` sets a state, never\n   `Destroy`; presentation listens to the same event and moves nothing.\n6. **Register what a journey reads**: `GameProbe.Count(\"damageEvents\", () => health.DamageEvents)`,\n   `GameProbe.Count(\"swings\", () => hitbox.SwingId)`, `GameProbe.Register(\"hitboxOpen\", () => hitbox.IsOpen)`.\n\n## 1. The hit lands twice, or once per step\n\nCount first: log `hitbox.SwingId`, `hitbox.ContactsThisSwing` and the target's `DamageEvents`\nwhen the window closes — about `contacts=20 events=1` is healthy; `events` equal to `contacts`\nmeans nothing deduplicates. Then, in order:\n\n1. **Damage dealt from `OnTriggerEnter` \u002F `OnTriggerStay`** → move it into a hitbox with a hit list.\n2. **The list is keyed by collider** → key it by `GetComponentInParent\u003CIDamageable>()`.\n3. **The list is cleared anywhere but `Open()`.**\n4. **Two windows are open** (a skipped closing event) → §3.\n5. **Two hitbox components answer one window** (prefab and variant, or a leftover trigger).\n6. **Invincibility hides it** → test against a target with `invincibleSeconds` 0.\n\nA move meant to hit three times is three windows, three swing ids. Every step in full:\n`reference\u002Fhit-ladders.md`; the contract and the list: `reference\u002Fattack-windows.md`.\n\n## 2. The hit never lands\n\nFirst match wins: **the window never opened** (`hitboxOpen` in the probe; `unity-animation` →\n`reference\u002Fevents-and-windows.md`) · **the query leaves triggers out**\n(`QueryTriggerInteraction.Collide`; `useTriggers` on a 2D filter) · **`ContactsThisSwing` is 0**\n(mask, hurtbox layer not inherited, wrong `owner`) · **contacts but no hits** (no `IDamageable`,\nsame team, `blockMask`, receiver refused) · **a stale pose** (`Physics.SyncTransforms()` after a\nteleport) · **the volume is elsewhere** (gizmo; negative scale does not mirror a 2D query) · **a\nfast swing stepped over it** (`sweep`, `reference\u002Fmelee-queries.md`). Each step in full:\n`reference\u002Fhit-ladders.md`. Physics-side misses: `unity-physics-3d` → `reference\u002Fqueries.md`,\n`unity-physics-2d` → `reference\u002Fqueries-2d.md`.\n\n## 3. The window outlives the attack\n\n- **An AnimationEvent at 55% never fires when the state is left at 40%.** Open and close from a\n  StateMachineBehaviour, which always closes — `unity-animation` →\n  `reference\u002Fevents-and-windows.md`.\n- **The game closes too.** On hurt, stun, death, a cancelled attack or a return to the pool the\n  attacking state calls `hitbox.Close()` itself. `Close()` is safe to call twice.\n- **A window shorter than a fixed step still queries once**: `Close()` runs the query when no\n  step has.\n\n## 4. Damage every step, and being hit while already hit\n\n- **Invincibility is a timer on the receiver**, started by a hit that lands: 0.6 s for the\n  runner, 0 for a sentry meant to be hit in a combo. It is game state on the fixed clock; the\n  blink is presentation — `unity-game-feel` → `reference\u002Fflash-and-squash.md`.\n- **A hazard is an attack with a period.** Spikes deal 1 on contact and again every 1.0 s while\n  the runner stays; they do not call `TakeDamage` from `OnTriggerStay`.\n- **A kill plane sets `DamageTags.IgnoreInvincibility`.** Nothing else does.\n- **Stun is shorter than invincibility** (0.15 s against 0.6 s), or the runner regains control\n  with no time to leave.\n\nTimers, hazards, stun and control lock: `reference\u002Fiframes-and-knockback.md`.\n\n## 5. Projectiles pass through\n\nA shot at 30 units\u002Fs moves 0.6 units per 0.02 s step. Anything thinner is stepped over, and\ncontinuous detection does not help: triggers are not swept, and in 2D neither is a kinematic body.\n\n- **The shot is a cast, not a body.** Each fixed step, cast its radius along `speed × dt`; move\n  to the hit or to the end. `Projectile3D` and `Projectile2D` have no collider and no body.\n- **The mask is `Hurtbox` plus the solid layers.** Without the solids it flies through walls;\n  without `Hurtbox` it hits bodies, which are the wrong shape.\n- **It ignores its owner and its team**, by hierarchy and by number, not by a layer per team.\n- **Pool it.** Pool size = fire rate × lifetime × shooters — `unity-scene-flow` →\n  `reference\u002Fpooling.md`.\n\nHoming, patterns as data and the fixed-screen budget: `reference\u002Fprojectiles.md`.\n\n## 6. Knock-back through a wall\n\n- **Knock-back is a velocity handed to whatever moves the character**, never a position write.\n  `transform.position += push` and `Rigidbody.position` skip collision; `CharacterController.Move`,\n  a motor's `Push` and a dynamic body's `linearVelocity` do not.\n- **One writer.** `AddForce` beside a motor that assigns velocity lasts one step — route the\n  push through the motor: `unity-2d-controller` → `reference\u002Ftopdown-free.md`,\n  `unity-3d-controller` → `reference\u002Fmodel-choice.md`.\n- **Direction comes from the `DamageInfo`**, attacker's chest to the hurtbox, flattened onto the\n  floor in 3D. From `transform.forward` of the target it sends a runner hit in the back towards\n  the sentry.\n- **Size the room to the push.** 8 units\u002Fs decaying at 50 units\u002Fs² travels 0.72 units at a\n  0.02 s step.\n\n## 7. Prove it\n\n`templates\u002FCombatJourneyTest.cs` builds a gate room from colliders, drives the runner through\n`ScriptedRunInput`, and reads the probe:\n\n| Test | Asserts |\n|---|---|\n| `Swing_OverTwoHurtboxes_IsOneDamageEvent` | Contacts ≥ 4, damage events exactly 1, and at no sample more events than swings |\n| `SecondSwing_IsASecondDamageEvent` | Two presses, two events, swing ids 1 and 2 |\n| `HitDuringInvincibility_IsNoDamageEvent` | A swing 0.2 s after a hit touches the runner and is refused; after 0.6 s the next lands; the runner was pushed and `JourneyAsserts.NeverInside` reports nothing |\n| `FastShot_IsStoppedByAThinWall` | A 60 units\u002Fs shot stops at a 0.1-unit wall; no sample is past it; the sentry behind is untouched |\n\n`COMBAT_JOURNEY_BREAK=hitlist`, `=iframes` and `=cast` each turn at least one test red. Run each once: a\ngate nobody has seen fail proves nothing. Journeys and the probe: `unity-play-harness` →\n`reference\u002Fjourneys.md`.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Hit flash, hit pause, screen shake, particles, impact sounds | `unity-game-feel` |\n| When a sentry attacks, what it sees, patrols, waves | `unity-game-ai` |\n| Doors, switches, pickups, prompts | `unity-interaction` |\n| Authoring the window on a state; clips, events, override controllers | `unity-animation` |\n| Moving the character; how a motor applies a push | `unity-2d-controller`, `unity-3d-controller` |\n| A callback or a query that fails for physics reasons | `unity-physics-3d`, `unity-physics-2d` |\n| Pools, saving health between scenes, pause | `unity-scene-flow` |\n| Health bars and damage numbers | `unity-game-ui` |\n| The attack button, aim direction | `unity-input` |\n| Cell-based attacks, range and turn order on a board | `unity-2d-grid` |\n| Recorders, the probe contract | `unity-play-harness` |\n| Damage over a network; who is authoritative | `unity-live-services` → `reference\u002Fmultiplayer.md` §2 (netcode APIs are out of scope) |\n","# unity-combat — one swing is one damage event, and the engine will not enforce it for you\n\n> **`OnTriggerEnter` counts collider pairs, not attacks.** A sword that crosses a sentry with a\n> head and a torso hurtbox raises it twice; a target that steps out and back in raises it again;\n> `OnTriggerStay` raises it every step. Nothing in PhysX or Box2D knows what a swing is. So the\n> trigger is demoted to a question — what is in this volume now — and the **attack** keeps the\n> list of who it has already hit.\n\n## Symptom → where to look (first match wins; stop at the first cause you confirm)\n\n| Symptom | Go to |\n|---|---|\n| \"add health and damage\" — setting up the path | §0 |\n| \"the enemy takes damage twice from one swing\": one swing takes two hearts, or the count rises with the number of colliders | §1 |\n| \"the sword hits every frame\": health lost on every step the weapon touches | §1 |\n| \"my attack does not hit the enemy\": the swing passes through and nothing is reported | §2 |\n| It lands on the attacker, on a teammate, or through a wall | §2 |\n| The window stays open after the attack was interrupted | §3 |\n| \"spikes drain all my health\": every heart lost at once on a hazard, or is hit again while flying back | §4 |\n| \"the shot goes straight through the sentry\": a fast shot passes through the sentry or a thin wall | §5 |\n| \"knockback pushes it into the wall\": the target ends inside a wall, or it does not move at all | §6 |\n| Hits land and nothing shows: no flash, no pause, no sound | `unity-game-feel` |\n\nEvery hit in the game takes the same path, and each stage has one job:\n\n```\nwindow ────────► hitbox ─────────────► DamageInfo ──► IDamageable ───────► events\nOpen() \u002F Close()  swing id + hit list   a struct       Health: team,        Damaged, Died\nfrom the Animator query per fixed step  on the stack   invincibility,       presentation and\nor a game timer   who, once per swing                  death as a state     the controller's push\n```\n\n| Stage | File | Decides | Never decides |\n|---|---|---|---|\n| Window | the game's attacking state, or `unity-animation`'s window behaviour | When the active frames start and end | Who is hit |\n| Attack | `resources\u002FHitbox3D.cs`, `Hitbox2D.cs`, `Projectile3D.cs`, `Projectile2D.cs` | Who is offered the hit, once per swing | Whether it lands |\n| Message | `resources\u002FDamageInfo.cs` | Nothing — it carries amount, source, team, point, direction, knock-back, stun, tags, swing id | — |\n| Receiver | `resources\u002FHealth.cs` | Whether it lands: alive, other team, not invincible | Movement, effects, destruction |\n\n## 0. Set up the path\n\n1. **Three layers beyond the level's own**: `Body` (what the solver pushes), `Hurtbox` (where a\n   character can be hit), `Hitbox` (trigger hitboxes only). `Hurtbox` collides with nothing in\n   the matrix: a query reads its mask, not the matrix. The matrices for 3D and 2D:\n   `reference\u002Fhit-and-hurt-layers.md`.\n2. **The receiver goes on the root**, hurtboxes on its children: `Health` on the sentry, a\n   trigger `BoxCollider` on the torso bone and a `SphereCollider` on the head, both on\n   `Hurtbox`. Size them from constants, never from the renderer — `unity-rigged-character` →\n   `reference\u002Fgameplay-rig.md`.\n3. **The hitbox is an empty child with `Hitbox3D`** (or `Hitbox2D`), `hurtMask` = `Hurtbox`,\n   `team` set. No collider, no body.\n4. **Open and close it from the window** — `AttackWindowBehaviour` on the attack state (open 0.25,\n   close 0.55) calling a small `IAttackWindowReceiver` beside the Animator — and from the game's\n   own state on interruption (`StrikeWindow`: `reference\u002Fattack-windows.md`).\n5. **The controller listens for the hit** and moves itself (`health.Damaged += info =>\n   motor.Push(info.KnockbackVelocity, info.stun)`, the one writer); `Died` sets a state, never\n   `Destroy`; presentation listens to the same event and moves nothing.\n6. **Register what a journey reads**: `GameProbe.Count(\"damageEvents\", () => health.DamageEvents)`,\n   `GameProbe.Count(\"swings\", () => hitbox.SwingId)`, `GameProbe.Register(\"hitboxOpen\", () => hitbox.IsOpen)`.\n\n## 1. The hit lands twice, or once per step\n\nCount first: log `hitbox.SwingId`, `hitbox.ContactsThisSwing` and the target's `DamageEvents`\nwhen the window closes — about `contacts=20 events=1` is healthy; `events` equal to `contacts`\nmeans nothing deduplicates. Then, in order:\n\n1. **Damage dealt from `OnTriggerEnter` \u002F `OnTriggerStay`** → move it into a hitbox with a hit list.\n2. **The list is keyed by collider** → key it by `GetComponentInParent\u003CIDamageable>()`.\n3. **The list is cleared anywhere but `Open()`.**\n4. **Two windows are open** (a skipped closing event) → §3.\n5. **Two hitbox components answer one window** (prefab and variant, or a leftover trigger).\n6. **Invincibility hides it** → test against a target with `invincibleSeconds` 0.\n\nA move meant to hit three times is three windows, three swing ids. Every step in full:\n`reference\u002Fhit-ladders.md`; the contract and the list: `reference\u002Fattack-windows.md`.\n\n## 2. The hit never lands\n\nFirst match wins: **the window never opened** (`hitboxOpen` in the probe; `unity-animation` →\n`reference\u002Fevents-and-windows.md`) · **the query leaves triggers out**\n(`QueryTriggerInteraction.Collide`; `useTriggers` on a 2D filter) · **`ContactsThisSwing` is 0**\n(mask, hurtbox layer not inherited, wrong `owner`) · **contacts but no hits** (no `IDamageable`,\nsame team, `blockMask`, receiver refused) · **a stale pose** (`Physics.SyncTransforms()` after a\nteleport) · **the volume is elsewhere** (gizmo; negative scale does not mirror a 2D query) · **a\nfast swing stepped over it** (`sweep`, `reference\u002Fmelee-queries.md`). Each step in full:\n`reference\u002Fhit-ladders.md`. Physics-side misses: `unity-physics-3d` → `reference\u002Fqueries.md`,\n`unity-physics-2d` → `reference\u002Fqueries-2d.md`.\n\n## 3. The window outlives the attack\n\n- **An AnimationEvent at 55% never fires when the state is left at 40%.** Open and close from a\n  StateMachineBehaviour, which always closes — `unity-animation` →\n  `reference\u002Fevents-and-windows.md`.\n- **The game closes too.** On hurt, stun, death, a cancelled attack or a return to the pool the\n  attacking state calls `hitbox.Close()` itself. `Close()` is safe to call twice.\n- **A window shorter than a fixed step still queries once**: `Close()` runs the query when no\n  step has.\n\n## 4. Damage every step, and being hit while already hit\n\n- **Invincibility is a timer on the receiver**, started by a hit that lands: 0.6 s for the\n  runner, 0 for a sentry meant to be hit in a combo. It is game state on the fixed clock; the\n  blink is presentation — `unity-game-feel` → `reference\u002Fflash-and-squash.md`.\n- **A hazard is an attack with a period.** Spikes deal 1 on contact and again every 1.0 s while\n  the runner stays; they do not call `TakeDamage` from `OnTriggerStay`.\n- **A kill plane sets `DamageTags.IgnoreInvincibility`.** Nothing else does.\n- **Stun is shorter than invincibility** (0.15 s against 0.6 s), or the runner regains control\n  with no time to leave.\n\nTimers, hazards, stun and control lock: `reference\u002Fiframes-and-knockback.md`.\n\n## 5. Projectiles pass through\n\nA shot at 30 units\u002Fs moves 0.6 units per 0.02 s step. Anything thinner is stepped over, and\ncontinuous detection does not help: triggers are not swept, and in 2D neither is a kinematic body.\n\n- **The shot is a cast, not a body.** Each fixed step, cast its radius along `speed × dt`; move\n  to the hit or to the end. `Projectile3D` and `Projectile2D` have no collider and no body.\n- **The mask is `Hurtbox` plus the solid layers.** Without the solids it flies through walls;\n  without `Hurtbox` it hits bodies, which are the wrong shape.\n- **It ignores its owner and its team**, by hierarchy and by number, not by a layer per team.\n- **Pool it.** Pool size = fire rate × lifetime × shooters — `unity-scene-flow` →\n  `reference\u002Fpooling.md`.\n\nHoming, patterns as data and the fixed-screen budget: `reference\u002Fprojectiles.md`.\n\n## 6. Knock-back through a wall\n\n- **Knock-back is a velocity handed to whatever moves the character**, never a position write.\n  `transform.position += push` and `Rigidbody.position` skip collision; `CharacterController.Move`,\n  a motor's `Push` and a dynamic body's `linearVelocity` do not.\n- **One writer.** `AddForce` beside a motor that assigns velocity lasts one step — route the\n  push through the motor: `unity-2d-controller` → `reference\u002Ftopdown-free.md`,\n  `unity-3d-controller` → `reference\u002Fmodel-choice.md`.\n- **Direction comes from the `DamageInfo`**, attacker's chest to the hurtbox, flattened onto the\n  floor in 3D. From `transform.forward` of the target it sends a runner hit in the back towards\n  the sentry.\n- **Size the room to the push.** 8 units\u002Fs decaying at 50 units\u002Fs² travels 0.72 units at a\n  0.02 s step.\n\n## 7. Prove it\n\n`templates\u002FCombatJourneyTest.cs` builds a gate room from colliders, drives the runner through\n`ScriptedRunInput`, and reads the probe:\n\n| Test | Asserts |\n|---|---|\n| `Swing_OverTwoHurtboxes_IsOneDamageEvent` | Contacts ≥ 4, damage events exactly 1, and at no sample more events than swings |\n| `SecondSwing_IsASecondDamageEvent` | Two presses, two events, swing ids 1 and 2 |\n| `HitDuringInvincibility_IsNoDamageEvent` | A swing 0.2 s after a hit touches the runner and is refused; after 0.6 s the next lands; the runner was pushed and `JourneyAsserts.NeverInside` reports nothing |\n| `FastShot_IsStoppedByAThinWall` | A 60 units\u002Fs shot stops at a 0.1-unit wall; no sample is past it; the sentry behind is untouched |\n\n`COMBAT_JOURNEY_BREAK=hitlist`, `=iframes` and `=cast` each turn at least one test red. Run each once: a\ngate nobody has seen fail proves nothing. Journeys and the probe: `unity-play-harness` →\n`reference\u002Fjourneys.md`.\n\n## Scope — what this skill does NOT do\n\n| Not here | Go to |\n|---|---|\n| Hit flash, hit pause, screen shake, particles, impact sounds | `unity-game-feel` |\n| When a sentry attacks, what it sees, patrols, waves | `unity-game-ai` |\n| Doors, switches, pickups, prompts | `unity-interaction` |\n| Authoring the window on a state; clips, events, override controllers | `unity-animation` |\n| Moving the character; how a motor applies a push | `unity-2d-controller`, `unity-3d-controller` |\n| A callback or a query that fails for physics reasons | `unity-physics-3d`, `unity-physics-2d` |\n| Pools, saving health between scenes, pause | `unity-scene-flow` |\n| Health bars and damage numbers | `unity-game-ui` |\n| The attack button, aim direction | `unity-input` |\n| Cell-based attacks, range and turn order on a board | `unity-2d-grid` |\n| Recorders, the probe contract | `unity-play-harness` |\n| Damage over a network; who is authoritative | `unity-live-services` → `reference\u002Fmultiplayer.md` §2 (netcode APIs are out of scope) |\n",{"name":5,"description":7},"main","b7459aa49fb881c5abb764223674ec8f397a02b1","skills\u002Funity-combat",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-combat",{"tool":38,"command":39},"bunx","bunx skills add tipoLi5890\u002Funity-dev-skills --skill unity-combat",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tipoLi5890\u002Funity-dev-skills --skill unity-combat","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002FSKILL.md",true,[46,52,56,60,64,68,72,76,82,86,90,94,98,102],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"reference\u002Fattack-windows.md","REFERENCE","参考文档",8379,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fattack-windows.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"reference\u002Fdamage-contract.md",7994,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fdamage-contract.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"reference\u002Fhit-and-hurt-layers.md",9117,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fhit-and-hurt-layers.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"reference\u002Fhit-ladders.md",3761,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fhit-ladders.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"reference\u002Fiframes-and-knockback.md",9680,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fiframes-and-knockback.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"reference\u002Fmelee-queries.md",8522,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fmelee-queries.md",{"path":73,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":74,"sourceHtmlUrl":75},"reference\u002Fprojectiles.md",10327,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Freference\u002Fprojectiles.md",{"path":77,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002FDamageInfo.cs","OTHER","其他",3405,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FDamageInfo.cs",{"path":83,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":84,"sourceHtmlUrl":85},"resources\u002FHealth.cs",4573,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FHealth.cs",{"path":87,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":88,"sourceHtmlUrl":89},"resources\u002FHitbox2D.cs",7949,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FHitbox2D.cs",{"path":91,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":92,"sourceHtmlUrl":93},"resources\u002FHitbox3D.cs",8757,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FHitbox3D.cs",{"path":95,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":96,"sourceHtmlUrl":97},"resources\u002FProjectile2D.cs",8447,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FProjectile2D.cs",{"path":99,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":100,"sourceHtmlUrl":101},"resources\u002FProjectile3D.cs",8009,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Fresources\u002FProjectile3D.cs",{"path":103,"resourceType":78,"resourceTypeDesc":79,"sizeBytes":104,"sourceHtmlUrl":105},"templates\u002FCombatJourneyTest.cs",21313,"https:\u002F\u002Fgithub.com\u002FtipoLi5890\u002Funity-dev-skills\u002Fblob\u002Fmain\u002Fskills\u002Funity-combat\u002Ftemplates\u002FCombatJourneyTest.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",[],[]]