[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KGEAJBHQB3RBW0Q2WH5YYQ":3,"skill-same:01M6KGEAJBHQB3RBW0Q2WH5YYQ":66},{"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":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":45,"commitSha":46,"skillDirectory":47,"forksCount":48,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":6,"ownerDescription":51,"updatedAt":52,"install":53,"resources":65},"01M6KGEAJBHQB3RBW0Q2WH5YYQ","wave7-ecs-to-go-transform-sync",null,"Synchronize ECS entity world-space position\u002Frotation to a companion GameObject''s Transform each frame for hybrid rendering or audio.","dyCuong03\u002Funity-agent-team","dyCuong03","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137050365?v=4","01M6KFXC85HQHXZJC2VC1KY6EZ","CuongND","01M6KFXCCHP6CD5MTA8NECJC36",8,"MIT","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave7-ecs-to-go-transform-sync\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"ecs","wave7 ecs to go transform sync","go","transform","sync","position","world","rendering","transforms","Audio","companion","true","rotation","entity","for","frame","hybrid","2026-11-10 10:12:30",false,"﻿---\nname: wave7-ecs-to-go-transform-sync\ndescription: Synchronize ECS entity world-space position\u002Frotation to a companion GameObject''s Transform each frame for hybrid rendering or audio.\ntags: [hybrid, transforms]\nmetadata:\n  internal-only: true\n  tier: 3\n---\n\n# ECS-to-GO Transform Sync\n\n## Intent\nSynchronize ECS entity world-space position\u002Frotation to a companion GameObject's Transform each frame for hybrid rendering or audio.\n\n## Use When\n- A companion GO (VFX particle system, audio source, UI widget) must track an ECS entity's world-space position without full ECS rendering\n- Hybrid mode where some entities use GO rendering alongside ECS simulation\n\n## Avoid When\n- The entity is rendered via Entities Graphics — LocalToWorld is consumed directly; no GO sync needed\n- Entity count exceeds ~500 synced GOs — main-thread bottleneck; consider instanced rendering instead\n\n## Senior Pattern\n```csharp\n[UpdateInGroup(typeof(PresentationSystemGroup))]\npublic partial class CompanionTransformSyncSystem : SystemBase\n{\n    protected override void OnUpdate()\n    {\n        foreach (var (l2w, go) in\n            SystemAPI.Query\u003CRefRO\u003CLocalToWorld>, UnityEngine.GameObject>())\n        {\n            if (go == null) continue;  \u002F\u002F guard against externally destroyed GOs\n\n            \u002F\u002F SetPositionAndRotation is one native call — faster than separate .position\u002F.rotation:\n            go.transform.SetPositionAndRotation(\n                l2w.ValueRO.Position,\n                l2w.ValueRO.Rotation);\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Syncing Transform.position inside a job — Transform is a managed type; jobs cannot access it.\n- Reading LocalTransform instead of LocalToWorld for world-space sync — LocalTransform is local-space; wrong for child entities in a hierarchy.\n- Syncing in SimulationSystemGroup — GO Transform state is not simulation input; sync must run after simulation completes in PresentationSystemGroup.\n- Syncing every frame at high entity counts (>500) without LOD or distance culling — main-thread bottleneck; profile explicitly.\n- Omitting null guard — GO destroyed externally produces MissingReferenceException every frame.\n\n## Runtime Risks\n- If the GO is destroyed externally (scene unload, Object.Destroy), the managed reference becomes null — null guard required.\n- Transform sync reads LocalToWorld which is written by TransformSystemGroup — PresentationSystemGroup runs after TransformSystemGroup, so values are current-frame.\n\n## Performance Notes\n- Transform.SetPositionAndRotation is faster than separate .position + .rotation assignments — one native P\u002FInvoke call.\n- Still main-thread only. Profile at >200 synced entities. At >500, consider:\n  - Distance-based culling (only sync entities within camera range)\n  - Replacing companion GOs with GPU instancing\n\n## Architecture Guidance\n- Run exclusively in PresentationSystemGroup (after simulation and TransformSystemGroup).\n- Never sync in SimulationSystemGroup or FixedStepSimulationSystemGroup — GO Transform state is not simulation input.\n- Companion GO Transform is write-only from ECS perspective — never read GO Transform.position back into ECS.\n\n## Related Skills\n[[wave7-companion-go-lifecycle]], [[wave7-add-component-object-hybrid-attach]], [[local-to-world-read-only-contract]], [[wave7-system-api-managed-api-query]]\n","# ECS-to-GO Transform Sync\n\n## Intent\nSynchronize ECS entity world-space position\u002Frotation to a companion GameObject's Transform each frame for hybrid rendering or audio.\n\n## Use When\n- A companion GO (VFX particle system, audio source, UI widget) must track an ECS entity's world-space position without full ECS rendering\n- Hybrid mode where some entities use GO rendering alongside ECS simulation\n\n## Avoid When\n- The entity is rendered via Entities Graphics — LocalToWorld is consumed directly; no GO sync needed\n- Entity count exceeds ~500 synced GOs — main-thread bottleneck; consider instanced rendering instead\n\n## Senior Pattern\n```csharp\n[UpdateInGroup(typeof(PresentationSystemGroup))]\npublic partial class CompanionTransformSyncSystem : SystemBase\n{\n    protected override void OnUpdate()\n    {\n        foreach (var (l2w, go) in\n            SystemAPI.Query\u003CRefRO\u003CLocalToWorld>, UnityEngine.GameObject>())\n        {\n            if (go == null) continue;  \u002F\u002F guard against externally destroyed GOs\n\n            \u002F\u002F SetPositionAndRotation is one native call — faster than separate .position\u002F.rotation:\n            go.transform.SetPositionAndRotation(\n                l2w.ValueRO.Position,\n                l2w.ValueRO.Rotation);\n        }\n    }\n}\n```\n\n## Anti-Patterns\n- Syncing Transform.position inside a job — Transform is a managed type; jobs cannot access it.\n- Reading LocalTransform instead of LocalToWorld for world-space sync — LocalTransform is local-space; wrong for child entities in a hierarchy.\n- Syncing in SimulationSystemGroup — GO Transform state is not simulation input; sync must run after simulation completes in PresentationSystemGroup.\n- Syncing every frame at high entity counts (>500) without LOD or distance culling — main-thread bottleneck; profile explicitly.\n- Omitting null guard — GO destroyed externally produces MissingReferenceException every frame.\n\n## Runtime Risks\n- If the GO is destroyed externally (scene unload, Object.Destroy), the managed reference becomes null — null guard required.\n- Transform sync reads LocalToWorld which is written by TransformSystemGroup — PresentationSystemGroup runs after TransformSystemGroup, so values are current-frame.\n\n## Performance Notes\n- Transform.SetPositionAndRotation is faster than separate .position + .rotation assignments — one native P\u002FInvoke call.\n- Still main-thread only. Profile at >200 synced entities. At >500, consider:\n  - Distance-based culling (only sync entities within camera range)\n  - Replacing companion GOs with GPU instancing\n\n## Architecture Guidance\n- Run exclusively in PresentationSystemGroup (after simulation and TransformSystemGroup).\n- Never sync in SimulationSystemGroup or FixedStepSimulationSystemGroup — GO Transform state is not simulation input.\n- Companion GO Transform is write-only from ECS perspective — never read GO Transform.position back into ECS.\n\n## Related Skills\n[[wave7-companion-go-lifecycle]], [[wave7-add-component-object-hybrid-attach]], [[local-to-world-read-only-contract]], [[wave7-system-api-managed-api-query]]\n",{"name":5,"tags":41,"metadata":42,"description":7},[35,27],{"tier":43,"internal-only":44},3,true,"main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-dots\u002Fwave7-ecs-to-go-transform-sync",0,"https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team","https:\u002F\u002Fgithub.com\u002FdyCuong03","Game developer","2026-07-25 22:22:25",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":44},[55,58,61],{"tool":56,"command":57},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill wave7-ecs-to-go-transform-sync",{"tool":59,"command":60},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill wave7-ecs-to-go-transform-sync",{"tool":62,"command":63},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill wave7-ecs-to-go-transform-sync","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-dots\u002Fwave7-ecs-to-go-transform-sync\u002FSKILL.md",[],[67,90,113,133,151,172],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":36},"01M6KH55FFS00ET877QSMRYGX4","dots-update-groups","How to choose the right ECS system group and ordering so per-frame and per-fixed-step work is deterministic and never races its own readers. Covers InitializationSystemGroup \u002F SimulationSystemGroup \u002F PresentationSystemGroup \u002F FixedStepSimulationSystemGroup \u002F VariableRateSimulationSystemGroup, UpdateBefore \u002F UpdateAfter peer ordering, OrderFirst \u002F OrderLast group-boundary placement, RateManager, and the cross-group ordering trap. Use when adding an ISystem, fixing \"value visible one frame late\" bugs, or coupling simulation to a fixed timestep.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-update-groups\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,19,88,34,89],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","bugs","value",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":36},"01M6KH50PWYEFQDCGYBZ0326F1","dots-transform-patterns","The Entities 1.x transform model — LocalTransform (writable input) vs LocalToWorld (system-owned matrix), Parent\u002FChild hierarchy, reparenting cost, uniform vs non-uniform scale (PostTransformMatrix), and when to opt out with custom transform systems. Use when designing parent\u002Fchild hierarchies, runtime reparenting (mount\u002Fdismount\u002Fsocket), or choosing transform components at the Baker boundary.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-transform-patterns\u002FSKILL.md",[],[97,22,98,99,76,79,100,101,82,102,103,104,105,106,107,108,109,110,111,112],"patterns","dots transform patterns","components","mount","model","cost","runtime","systems","input","with","matrix","socket","at","child","custom","hierarchy",{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":36},"01M6KH4VW4MA14DQW4KQYPFT0S","dots-singleton-patterns","Model cross-system shared configuration and game state as a single-entity component with a strict single-writer contract. Covers RequireForUpdate gating, SystemAPI.GetSingleton \u002F GetSingletonRW \u002F HasSingleton \u002F TryGetSingleton, bake-time vs runtime-created vs ECB-system singletons, the \"exactly one entity\" runtime invariant, and the single-writer rule. Use when designing frame-stable global config, shared mutable state, or any component intended to exist on exactly one entity.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-singleton-patterns\u002FSKILL.md",[],[97,120,121,122,123,124,125,79,101,82,126,127,128,103,129,130,106,34,131,132],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","as","ecb","gating",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":139,"publishedAt":36},"01M6KH4PR076AYNDZHD63HHWX6","dots-hybrid-bridge","The one-way bridge between DOTS-owned runtime state and Unity-owned presentation. Covers UnityObjectRef for managed asset refs in components, the DOTS-writes \u002F Unity-reads ownership rule, when to use managed IComponentData vs UnityObjectRef vs CompanionComponent, baker-bridge vs runtime-bridge, and SubScene boundary rules. Use when an entity must reference Unity assets (Mesh, Material, AudioClip, ScriptableObject), a MonoBehaviour view must read entity state, or input\u002FUI must trigger ECS work.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-hybrid-bridge\u002FSKILL.md",[],[140,35,141,142,99,124,76,143,144,81,145,146,82,103,147,148,105,149,33,150],"bridge","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","unity","material","managed",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":36},"01M6KH4FGRQ9AP2ND5H5HX4D83","dots-event-driven-ecs","Model one-frame events and external requests in ECS without dual ownership, polling, or persistent state leaks. Covers request-tag pattern with ECB, enableable command components (no structural change), event buffers (IBufferElementData), explicit consumer ownership, one-frame latency rules, and the banned C# event \u002F UnityEvent \u002F static bus anti-patterns. Use when input\u002FUI\u002Fnetwork must trigger ECS work, when a one-frame signal fans out to N consumers (damage, hit, collision), or when state changes must be processed exactly once.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-event-driven-ecs\u002FSKILL.md",[],[158,159,19,160,161,99,162,163,164,101,81,165,166,97,167,168,105,169,170,171],"event driven","driven","event","dots event driven ecs","change","ui","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":173,"name":174,"nameZh":6,"description":175,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":176,"categories":177,"keywords":178,"publishedAt":36},"01M6KH4BWRGCEBJ8PKCKCSGT33","valid_skill","A complete, well-formed test fixture skill for SkillHub validation testing. Covers basic task routing and code review for Unity projects.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid_skill\u002FSKILL.md",[],[179,180,181,182,183,184,185,186,187,188,189,190,191,192,148,193,33],"valid skill","valid","code review","testing","review","test","routing","code","validation","projects","fixture skill","task","fixture","basic","complete"]