Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sschmid/Entitas-CSharp
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
https://github.com/sschmid/Entitas-CSharp
c-sharp code-generation csharp design-pattern design-patterns ecs entity entity-component-system game game-development game-engine gamedev performance tdd unity unity3d
Last synced: 8 days ago
JSON representation
Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
- Host: GitHub
- URL: https://github.com/sschmid/Entitas-CSharp
- Owner: sschmid
- License: mit
- Created: 2014-03-18T16:36:44.000Z (almost 11 years ago)
- Default Branch: main
- Last Pushed: 2023-12-30T16:18:56.000Z (12 months ago)
- Last Synced: 2024-10-29T14:50:43.898Z (about 2 months ago)
- Topics: c-sharp, code-generation, csharp, design-pattern, design-patterns, ecs, entity, entity-component-system, game, game-development, game-engine, gamedev, performance, tdd, unity, unity3d
- Language: C#
- Homepage:
- Size: 81.7 MB
- Stars: 7,143
- Watchers: 404
- Forks: 1,111
- Open Issues: 101
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- AwesomeCppGameDev - Entitas-CSharp
- programming-awesome-list - Entitas-CSharp - Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity (Libraries & Frameworks: / C#)
- awesome-unity3d - Entitas-CSharp - Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity (Open Source Repositories / ECS Framework)
README
Entitas is free, but powered by
your donations
# Entitas - The Entity Component System Framework for C# and Unity
Entitas is the most popular open-source Entity Component System Framework (ECS)
and is specifically made for C# and Unity. Several design decisions have been
made to work optimal in a garbage collected environment and to go easy on the
garbage collector. Entitas comes with an optional code generator which radically
reduces the amount of code you have to write and
[makes your code read like well written prose.](https://cleancoders.com)# Why Entitas
- [#1 open-source ECS on GitHub](https://github.com/sschmid/Entitas)
- 100% open-source under the [MIT License](LICENSE.md)
- great and helpful community on [Discord](https://discord.gg/uHrVx5Z)
- easy to learn and easy to use
- works great in pure C# standalone projects without Unity
- comes with great Unity integration called Visual Debugging
- battle-tested at companies like [Popcore](https://popcore.com) (Rollic / Zynga / Take Two), [Gram Games](https://gram.gs), [Wooga](https://www.wooga.com), [Plarium](https://plarium.com), [Storm Chaser](https://www.stormchaser-games.com) and many more# Video Tutorials and Unity Unite Talks
| Video | Title | Resources |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------------------------------|
| | Entitas ECS Unity Tutorial - Git & Unit Tests | |
| | Entitas ECS Unity Tutorial - Setup & Basics | |
| | Unite Europe 2016: ECS architecture with Unity by example | [SlideShare: Unite Europe 2016](http://www.slideshare.net/sschmid/uniteeurope-2016) |
| | Unite Europe 2015: Entity system architecture with Unity | [SlideShare: Unite Europe 2015](http://www.slideshare.net/sschmid/uniteeurope-2015) |# First glimpse
The optional [code generator](https://github.com/sschmid/Entitas/wiki/Code-Generator)
lets you write code that is super fast, safe and literally screams its intent.```csharp
var entity = context.CreateEntity();
entity.AddPosition(Vector3.zero);
entity.AddVelocity(Vector3.forward);
entity.AddAsset("Player");
``````csharp
using static GameMatcher;public sealed class MoveSystem : IExecuteSystem
{
readonly IGroup _group;public MoveSystem(GameContext context)
{
_group = context.GetGroup(AllOf(Position, Velocity));
}public void Execute()
{
foreach (var e in _group.GetEntities())
e.ReplacePosition(e.position.value + e.velocity.value);
}
}
```# Overview
Entitas is fast, light and gets rid of unnecessary complexity. There are less
than a handful classes you have to know to rocket start your game or application:- Context
- Entity
- Component
- Group```
Entitas ECS+-----------------+
| Context |
|-----------------|
| e e | +-----------+
| e e--|----> | Entity |
| e e | |-----------|
| e e e | | Component |
| e e | | | +-----------+
| e e | | Component-|----> | Component |
| e e e | | | |-----------|
| e e e | | Component | | Data |
+-----------------+ +-----------+ +-----------+
|
|
| +-------------+ Groups:
| | e | Subsets of entities in the context
| | e e | for blazing fast querying
+---> | +------------+
| e | | |
| e | e | e |
+--------|----+ e |
| e |
| e e |
+------------+
```[Read more...](https://github.com/sschmid/Entitas/wiki/Home)
# Code Generator
The Code Generator generates classes and methods for you, so you can focus on
getting the job done. It radically reduces the amount of code you have to write
and improves readability by a huge magnitude. It makes your code less error-prone
while ensuring best performance.[Read more...](https://github.com/sschmid/Entitas/wiki/Code-Generator)
# Unity integration
The optional Unity module "Visual Debugging" integrates Entitas nicely into Unity and provides powerful
editor extensions to inspect and debug contexts, groups, entities, components and systems.[Read more...](https://github.com/sschmid/Entitas/wiki/Unity-integration)
# Entitas deep dive
[Read the wiki](https://github.com/sschmid/Entitas/wiki) or checkout the [example projects](https://github.com/sschmid/Entitas/wiki/Example-projects) to
see Entitas in action. These example projects illustrate how systems, groups, collectors and entities all play together seamlessly.### **[» Download and setup](#download-and-setup-entitas)**
### **[» Video Tutorials and Unity Unite Talks](#video-tutorials-and-unity-unite-talks)**
### **[» Wiki and example projects](https://github.com/sschmid/Entitas/wiki)**
### **[» Ask a question](https://github.com/sschmid/Entitas/issues/new)**---
# Download and setup Entitas
### GitHub releases (recommended)
[Show releases](https://github.com/sschmid/Entitas/releases)
### Unity package manager
> Coming soon
### NuGet
Entitas and all dependencies are available as [NuGet packages](https://www.nuget.org/packages?q=Entitas).
More detailed explanation coming soon.### Unity Asset Store (deprecated)
[Entitas on the Unity Asset Store](http://u3d.as/NuJ) is deprecated and will not
be updated anymore. The last version available on the Asset Store is 1.12.3 and
is free to download. Please see discussion [Entitas turns 7 - and is FREE now ](https://github.com/sschmid/Entitas/discussions/1009)# Thanks to
Big shout out to [@mzaks][github-mzaks], [@cloudjubei][github-cloudjubei] and [@devboy][github-devboy]
for endless hours of discussion and helping making Entitas awesome![github-mzaks]: https://github.com/mzaks "@mzaks"
[github-cloudjubei]: https://github.com/cloudjubei "@cloudjubei"
[github-devboy]: https://github.com/devboy "@devboy"# Maintainers
- [@sschmid][github-sschmid] | [@s_schmid][twitter-sschmid] | [@entitas_csharp][twitter-entitas_csharp]
[github-sschmid]: https://github.com/sschmid "@sschmid"
[twitter-sschmid]: https://twitter.com/s_schmid "s_schmid on Twitter"
[twitter-entitas_csharp]: https://twitter.com/entitas_csharp "entitas_csharp on Twitter"# Different language?
Entitas is available in
- [C#](https://github.com/sschmid/Entitas)
- [C++](https://github.com/JuDelCo/Entitas-Cpp)
- [Clojure](https://github.com/mhaemmerle/entitas-clj)
- [Crystal](https://github.com/spoved/entitas.cr)
- [Erlang](https://github.com/mhaemmerle/entitas_erl)
- [F#](https://github.com/darkoverlordofdata/entitas-fsharp)
- [Go](https://github.com/wooga/go-entitas)
- [Haskell](https://github.com/mhaemmerle/entitas-haskell)
- [Java](https://github.com/Rubentxu/entitas-java)
- [Kotlin](https://github.com/darkoverlordofdata/entitas-kotlin)
- [Objective-C](https://github.com/wooga/entitas)
- [Python](https://github.com/Aenyhm/entitas-python)
- [Scala](https://github.com/darkoverlordofdata/entitas-scala)
- [Swift](https://github.com/mzaks/Entitas-Swift)
- [TypeScript](https://github.com/darkoverlordofdata/entitas-ts)