• Stars
    star
    7,026
  • Rank 5,565 (Top 0.2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 10 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity

Entitas

Entitas on Discord Latest release Twitter Follow Me Twitter Follow Me

Entitas is free, but powered by your donations

Donate

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.

Why Entitas

Video Tutorials and Unity Unite Talks

Title Video Resources
Entitas ECS Unity Tutorial - Git & Unit Tests Video: Shmup2
Entitas ECS Unity Tutorial - Setup & Basics Video: Shmup1
Unite Europe 2016: ECS architecture with Unity by example Video: Unite Europe 2016 SlideShare: Unite Europe 2016
Unite Europe 2015: Entity system architecture with Unity Video: Unite Europe 2015 SlideShare: Unite Europe 2015

First glimpse

The optional code generator lets you write code that is super fast, safe and literally screams its intent.

var entity = context.CreateEntity();
entity.AddPosition(Vector3.zero);
entity.AddVelocity(Vector3.forward);
entity.AddAsset("Player");
using static GameMatcher;

public sealed class MoveSystem : IExecuteSystem
{
    readonly IGroup<GameEntity> _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...

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...

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...

Entitas.Unity MenuItems
Entitas.Unity.VisualDebugging Entity Entitas.Unity.VisualDebugging Systems

Entitas deep dive

Read the wiki or checkout the example projects to see Entitas in action. These example projects illustrate how systems, groups, collectors and entities all play together seamlessly.

» Download and setup

» Video Tutorials and Unity Unite Talks

» Wiki and example projects

» Ask a question


Download and setup Entitas

GitHub releases (recommended)

Show releases

Unity package manager

Coming soon

NuGet

Entitas and all dependencies are available as NuGet packages. More detailed explanation coming soon.

Unity Asset Store (deprecated)

Entitas on the Unity Asset Store 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

Thanks to

Big shout out to @mzaks, @cloudjubei and @devboy for endless hours of discussion and helping making Entitas awesome!

Maintainers

Different language?

Entitas is available in

More Repositories

1

Match-One

This is a simple and interactive Unity3d example project to show how to use Entitas
C#
196
star
2

Sherlog

Flexible logging for C# and Unity
C#
186
star
3

Entitas-Shmup

Entitas Shmup - An advanced example project to teach how to use Entitas with Unity physics and unit test
C#
75
star
4

bee

🐝 bee - plugin-based bash automation
Shell
72
star
5

Entitas-CSharp-Example

This is a simple and interactive Unity3d example project to show how to use Entitas
C#
47
star
6

Entitas-Standalone

Entitas-Standalone is a pure C# console app using Entitas
C#
32
star
7

Jenny

A lovely .NET Code Generator
C#
28
star
8

Promises-CSharp

Promises
C#
22
star
9

DesperateDevs

C#
18
star
10

pw-terminal-password-manager

🔐 pw - Terminal Password Manager powered by fzf
Shell
14
star
11

Floc-Commands

A collection of commands with fluent API for Objective-C.
Objective-C
12
star
12

Gummi-Injection

A lightweight dependency injection framework for Objective-C
Objective-C
9
star
13

TCPeasy

🔌 Connecting sockets
C#
6
star
14

bee-unity

Useful functions for Unity development - https://github.com/sschmid/bee
Shell
6
star
15

com.sschmid.jenny

Automated Unity Package Releases of Jenny: https://github.com/sschmid/Jenny
C#
6
star
16

Floc-Dispatcher

An alternative to NSNotificationCenter.
Objective-C
6
star
17

SDObjection

A lightweight dependency injection framework for Objective-C.
Objective-C
5
star
18

com.sschmid.sherlog

Automated Unity Package Releases of Sherlog: https://github.com/sschmid/Sherlog
C#
5
star
19

bee-ios

Useful functions for iOS development - https://github.com/sschmid/bee
Shell
4
star
20

bee-android

Useful functions for Android development - https://github.com/sschmid/bee
Shell
4
star
21

com.sschmid.desperatedevs

Automated Unity Package Releases of DesperateDevs: https://github.com/sschmid/DesperateDevs
C#
4
star
22

bee-slack

Send messages via slack - https://github.com/sschmid/bee
Shell
3
star
23

beehub

Official bee plugin register - https://github.com/sschmid/bee
Shell
3
star
24

bee-macos

Useful functions for macOS - https://github.com/sschmid/bee
Shell
3
star
25

Gummi-Reflection

Reflection for Objective-C
Objective-C
3
star
26

Gummi-Commander

Event Command Mapping System for Objective-C
Objective-C
3
star
27

com.sschmid.tcpeasy

Automated Unity Package Releases of TCPeasy: https://github.com/sschmid/TCPeasy
C#
3
star
28

Unity-2021.3

Empty Unity 2021.3 default project to be used as a submodule for testing and running your code
3
star
29

.sln.dotsettings

Rider DotSettings
2
star
30

bee-tree

Create directory and file overviews with tree - https://github.com/sschmid/bee
Shell
2
star
31

RoslynTest

How to get all projects from a solution (old vs. sdk style)
C#
1
star
32

Unity-2018.4

Empty Unity 2018.4 default project to be used as a submodule for testing and running your code
1
star
33

Gummi-Dispatcher

Observe and dispatch any objects
Objective-C
1
star
34

bee-github

Useful functions for GitHub - https://github.com/sschmid/bee
Shell
1
star
35

Unity-2019.4

Empty Unity 2019.4 default project to be used as a submodule for testing and running your code
1
star
36

DesperateDevs.HelloWorld

C#
1
star
37

bee-plugin

Release bee plugins - https://github.com/sschmid/bee
Shell
1
star
38

sschmid.github.io

HTML
1
star
39

RoslynUnitTestIssue

Using Roslyn to get class attributes works in console app but fails in unit test
C#
1
star
40

Unity-2021.3.0f1

1
star
41

cocoapods-specs

CocoaPods specs
Ruby
1
star
42

kcov-coverage

Shell
1
star
43

gameci-test

Shell
1
star
44

bee-sample

A template for bee plugins - https://github.com/sschmid/bee
Shell
1
star
45

bee-changelog

Merge changes into changelog - https://github.com/sschmid/bee
Shell
1
star
46

Floc-Reflection

Reflection for Objective-C.
Objective-C
1
star
47

bee-semver

Read, write and bump version numbers - https://github.com/sschmid/bee
Shell
1
star
48

Unity-2020.3

Empty Unity 2020.3 default project to be used as a submodule for testing and running your code
1
star
49

Projects

1
star