跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Unity ECS Patterns

技能 已验证 活跃

Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development. Use when building data-oriented games, optimizing performance, or working with large entity counts.

目的

Master Unity ECS (Entity Component System) with DOTS, Jobs, and Burst for high-performance game development.

功能

  • Explains ECS vs OOP paradigms
  • Details DOTS component types
  • Provides code patterns for Systems, Queries, and Command Buffers
  • Illustrates Aspect-oriented programming
  • Covers Singleton components and Baking processes
  • Demonstrates Jobs with Native Collections
  • Includes performance optimization tips

使用场景

  • Building high-performance Unity games
  • Managing thousands of entities efficiently
  • Implementing data-oriented game systems
  • Optimizing CPU-bound game logic
  • Converting OOP game code to ECS
  • Utilizing Jobs and Burst for parallelization

非目标

  • Unity editor workflow specifics beyond baking
  • Detailed C# language features outside of DOTS context
  • General game design principles not tied to ECS performance

工作流

  1. Understand ECS vs OOP
  2. Learn DOTS component types
  3. Implement basic ECS setup
  4. Utilize Systems (ISystem, IJobEntity)
  5. Perform Entity Queries
  6. Manage structural changes with Command Buffers
  7. Apply Aspects for component grouping
  8. Work with Singleton components
  9. Implement Baking for GameObject conversion
  10. Use Jobs with Native Collections
  11. Apply performance optimization tips

实践

  • ECS Patterns
  • DOTS
  • Job System
  • Burst Compiler
  • Performance Optimization
  • Data-Oriented Design

Practical Utility

  • info:Edge casesWhile the skill covers many patterns, explicit documentation of failure modes and recovery steps for edge cases within Unity ECS development is not detailed.

安装

请先添加 Marketplace

/plugin marketplace add wshobson/agents
/plugin install game-development@claude-code-workflows

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交3 days ago
星标35.3k
许可证MIT
状态
查看源代码

类似扩展

Game Developer

98

Use when building game systems, implementing Unity/Unreal Engine features, or optimizing game performance. Invoke to implement ECS architecture, configure physics systems and colliders, set up multiplayer networking with lag compensation, optimize frame rates to 60+ FPS targets, develop shaders, or apply game design patterns such as object pooling and state machines. Trigger keywords: Unity, Unreal Engine, game development, ECS architecture, game physics, multiplayer networking, game optimization, shader programming, game AI.

技能
jeffallan

Unity Mcp Orchestrator

100

通过 MCP(模型上下文协议)工具和资源编排 Unity 编辑器。在通过 MCP for Unity 处理 Unity 项目时使用——创建/修改 GameObjects、编辑脚本、管理场景、运行测试或任何 Unity 编辑器自动化。提供最佳实践、工具模式和工作流模式,以实现有效的 Unity-MCP 集成。

技能
CoplayDev

Mcp Source

100

切换已连接 Unity 项目中的 MCP for Unity 包源。使用 /mcp-source [main|beta|branch|local] 在上游发行版、远程分支或本地开发检出之间进行切换。

技能
CoplayDev

Game Ci Pipeline

99

Invoke to set up CI/CD pipelines for game builds -- automated testing, build pipelines, and deployment to Steam, itch.io, or Epic. Triggers on: "CI", "CD", "pipeline", "automated build", "deploy", "Steam deploy", "itch.io butler", "GitHub Actions game", "build automation". Do NOT invoke for general code review (use game-code-review) or manual testing guidance (use game-qa-lead). Part of the AlterLab GameForge collection.

技能
AlterLab-IEU

Unity Specialist

75

Invoke when the user works with Unity or asks about C#, MonoBehaviour, DOTS/ECS, Shader Graph, Addressables, UI Toolkit, URP/HDRP, or ScriptableObjects. Triggers on: "Unity", "MonoBehaviour", "DOTS", "ECS", "Shader Graph", "Addressables", "UI Toolkit", "URP", "HDRP", "ScriptableObject", ".unity", ".cs". Do NOT invoke for engine-agnostic architecture (use game-technical-director) or Godot/Unreal questions. Part of the AlterLab GameForge collection.

技能
AlterLab-IEU

Csharp Async

100

Get best practices for C# async programming

技能
github