Svelto ECS Example


Code example for Svelto ECS (

I used the Survival Shooter Unity Demo to show how an ECS framework could work inside Unity. I am not sure about the license of this demo, so use it only for learning purposes.

Most of the source code has been rewritten to work with the ECS framework. You should disregard the SveltEx folder, which has been added just for convenience. I have used some extra features from my framework, but I won’t keep this folder up to date. Check my other repositories to find the most updated version.

The Survival Demo and the Parallelism demo are tested with unity 5.6 and 2017.3, so I cannot guarantee that it always works, but it should work with all the versions from 5.3 and above.

New Parallelism Example is explained here: the article complements the comments in the code.

You can add Svelto-ECS framework from the original repository or syncing it from this one using the submodule approach.

Note: The folders Svelto.ECS, Svelto.Tasks and Svelto.Common, where present, are submodules pointing to the relavite repositories. If you find them empty, you need to update them through the submodule command. Check some instructions here: