ECS Wrapper
The ECS helpers connect Unity Entities with the AchEngine service and world abstractions. The module is optional and is compiled only when com.unity.entities is installed.
Basic usage
When should I use it?
Use the wrapper when gameplay data is already modeled as Entities and you need consistent world access, command buffers, bakers, or DI integration. Keep ordinary UI and scene orchestration in the regular AchEngine modules.
Use it from a system
EntityManager extensions
The package provides convenience extensions for creating, querying, and retrieving components while keeping the standard EntityManager API available.
Use it from a Baker
Inject an ECS world through DI
Register the desired world or an adapter in an installer and inject that abstraction into systems or services. This keeps world selection explicit in multi-world projects.