랭킹으로 돌아가기

sschmid/Entitas

C#

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

c-sharpunityecstddperformancedesign-patterndesign-patternsgamedevgame-developmentgame-enginecode-generationcsharp
스타 성장
스타
7.7k
포크
1.1k
주간 성장
이슈
96
2k4k6k
2014년 11월2018년 9월2022년 8월2026년 7월
README

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

Video Title Resources
Video: Entitas - Shmup - Part 2 Entitas ECS Unity Tutorial - Git & Unit Tests
Video: Entitas - Shmup - Part 1 Entitas ECS Unity Tutorial - Setup & Basics
Video: Watch the Entitas Talk at Unite Europe 2016 Unite Europe 2016: ECS architecture with Unity by example SlideShare: Unite Europe 2016
Video: Watch the Entitas Talk at Unite Europe 2015 Unite Europe 2015: Entity system architecture with Unity 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

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

관련 저장소
shadowsocks/shadowsocks-windows

A C# port of shadowsocks

C#Othershadowsocksc-sharp
59.6k16.2k
AvaloniaUI/Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The future of .NET UI

C#MIT Licensec-sharpxaml
avaloniaui.net
31.2k2.8k
google/flatbuffers

FlatBuffers: Memory Efficient Serialization Library

C++Apache License 2.0flatbuffersserialization
flatbuffers.dev
26.2k3.6k
icsharpcode/ILSpy

.NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!

C#MIT Licensedecompilerdecompiler-engine
25.7k3.7k
CodeHubApp/CodeHub

CodeHub is an iOS application written using Xamarin

C#codehubc-sharp
codehub-app.com
22.6k609
QuantConnect/Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)

C#Apache License 2.0c-sharpalgorithmic-trading-engine
lean.io
20.6k5.1k
microsoft/CNTK

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit

C++Othercognitive-toolkitcntk
docs.microsoft.com/cognitive-toolkit/
17.6k4.2k
MaterialDesignInXAML/MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.

C#MIT Licensec-sharpmaterial
16.2k3.5k
duplicati/duplicati

Store securely encrypted backups in the cloud!

C#Otherduplicatibackup
14.8k1.1k
dotnet/efcore

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.

C#MIT Licenseentity-frameworkdatabase
learn.microsoft.com/ef/
14.8k3.4k
abpframework/abp

Open-source web application framework for ASP.NET Core! Offers an opinionated architecture to build enterprise software solutions with best practices on top of the .NET. Provides the fundamental infrastructure, cross-cutting-concern implementations, startup templates, application modules, UI themes, tooling and documentation.

C#GNU Lesser General Public License v3.0abpcsharp
abp.io
14.4k3.7k
MonoGame/MonoGame

One framework for creating powerful cross-platform games.

C#Otherxnamonogame
monogame.net
14.2k3.1k