ECS Spatial Partitioning - Move Millions of Entities
Simeon Pfeiffer
$4.99
(no ratings)
Jump AssetStore
Simple base for Unity ECS games with a top-down view to move very large numbers of entities in an efficient way.Created in Unity 2022 LTS. Requires URP with Rendering Path Forward+ and the two packages Entities and Entities Graphics, version 1.0.This asset provides a simple base for Unity ECS games with a top-down view which need to move a very large number of individual entities with their own targets, speeds and destination wait time. Use cases range from zombie apocalypse shooters to city builders. If you need a million different moving entities, this asset can be your starting point.The asset includes placeholder spawner and random movement systems that you should replace with your own logic. Example scene and simple step by step instructions are included.The asset utilizes ECS 1.0 features, Burst and the Job System (DOTS) as well as spatial partitioning to update entities off screen in a more performant, but consistent, way than entities currently within the screen.Bonus: The asset also comes with a feature rich RTS camera script.Spatial partitioning by splitting the playable area into a fixed grid of cellsUtilization of Burst ECS 1.0 features, Burst and the Job System (DOTS)Works with Perspective and Orthographic CameraFocus on short and simple to understand code