Loic.sschmid.Entitas-CSharp
1.0.0
dotnet add package Loic.sschmid.Entitas-CSharp --version 1.0.0
NuGet\Install-Package Loic.sschmid.Entitas-CSharp -Version 1.0.0
<PackageReference Include="Loic.sschmid.Entitas-CSharp" Version="1.0.0" />
<PackageVersion Include="Loic.sschmid.Entitas-CSharp" Version="1.0.0" />
<PackageReference Include="Loic.sschmid.Entitas-CSharp" />
paket add Loic.sschmid.Entitas-CSharp --version 1.0.0
#r "nuget: Loic.sschmid.Entitas-CSharp, 1.0.0"
#addin nuget:?package=Loic.sschmid.Entitas-CSharp&version=1.0.0
#tool nuget:?package=Loic.sschmid.Entitas-CSharp&version=1.0.0
<p align="center"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/Entitas-Header.png" alt="Entitas"> </p>
<p align="center"> <a href="https://discord.gg/uHrVx5Z"> <img src="https://img.shields.io/discord/599321316377624601.svg?logo=discord&logoColor=FFFFFF&label=Discord&labelColor=6A7EC2&color=7389D8" alt="Entitas on Discord"></a> <a href="https://github.com/sschmid/Entitas-CSharp/releases"> <img src="https://img.shields.io/github/release/sschmid/Entitas-CSharp.svg" alt="Latest release"></a> </p>
<p align="center"> <a href="https://twitter.com/intent/follow?original_referer=https%3A%2F%2Fgithub.com%2Fsschmid%2FEntitas-CSharp&screen_name=s_schmid&tw_p=followbutton"> <img src="https://img.shields.io/twitter/follow/s_schmid" alt="Twitter Follow Me"></a> <a href="https://twitter.com/intent/follow?original_referer=https%3A%2F%2Fgithub.com%2Fsschmid%2FEntitas-CSharp&screen_name=entitas_csharp&tw_p=followbutton"> <img src="https://img.shields.io/twitter/follow/entitas_csharp" alt="Twitter Follow Me"></a> </p>
<p align="center"> <b>Entitas is free, but powered by</b> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BTMLSDQULZ852"> <b>your donations</b> </a> </p>
<p align="center"> <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=BTMLSDQULZ852"> <img src="https://img.shields.io/static/v1.svg?logo=paypal&label=PayPal&labelColor=3F70B6&&message=Donate&color=gray" alt="Join the chat at https://gitter.im/sschmid/Entitas-CSharp"></a> </p>
Entitas - The Entity Component System Framework for C# and Unity
Entitas is a super fast Entity Component System Framework (ECS) specifically made for C# and Unity. Internal caching and blazing fast component access makes it second to none. 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.
<p align="center"> <a href="https://dev.windows.com"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/csharp.png" alt="CSharp" height="64"></a> <a href="http://unity3d.com"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/MadeForUnity.png" alt="Unity3d" height="64"></a> <a href="http://unity3d.com/unite/archive/2015"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/UniteEurope2015.png" alt="Unite Europe 2015" height="64"></a> <a href="https://unite.unity.com/2016/europe"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/UniteEurope2016.png" alt="Unite Europe 2016" height="64"></a> <a href="https://www.wooga.com"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/wooga-logo.png" alt="Wooga" height="64"></a> <a href="http://gram.gs"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/GramGames.png" alt="Gram Games.png" height="64"></a> </p>
» Download
» Documentation
» Ask a question
» Wiki and example projects
» #madeWithEntitas
Video Tutorials & Unity Unite Talks
Entitas ECS Unity Tutorial | Entitas ECS Unity Tutorial | Entity system architecture with Unity | ECS architecture with Unity by example |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
Setup & Basics | Git & Unit Tests | » Open the slides on SlideShare: Unite Europe 2015 | » Open the slides on SlideShare: Unite Europe 2016 |
First glimpse
The optional code generator lets you write code that is super fast, safe and literally screams its intent.
public static GameEntity CreateRedGem(this GameContext context, Vector3 position) {
var entity = context.CreateEntity();
entity.isGameBoardElement = true;
entity.isMovable = true;
entity.AddPosition(position);
entity.AddAsset("RedGem");
entity.isInteractive = true;
return entity;
}
var entities = context.GetEntities(Matcher<GameEntity>.AllOf(GameMatcher.Position, GameMatcher.Velocity));
foreach(var e in entities) {
var pos = e.position;
var vel = e.velocity;
e.ReplacePosition(pos.value + vel.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:
- Entity
- Context
- Group
- Entity Collector
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. I strongly recommend using it!
Unity integration
The optional Unity module integrates Entitas nicely into Unity and provides powerful editor extensions to inspect and debug contexts, groups, entities, components and systems.
<p align="center"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/Entitas.Unity-MenuItems.png" alt="Entitas.Unity MenuItems" height="200"><br /> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/Entitas.Unity.VisualDebugging-Entity.png" alt="Entitas.Unity.VisualDebugging Entity" width="400"> <img src="https://raw.githubusercontent.com/sschmid/Entitas-CSharp/master/Readme/Images/Entitas.Unity.VisualDebugging-DebugSystems.png" alt="Entitas.Unity.VisualDebugging Systems" width="400"> </p>
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 Entitas
Each release is published with zip files containing all source files you need.
Thanks to
Big shout out to @mzaks, @cloudjubei and @devboy for endless hours of discussion and helping making Entitas awesome!
Maintainer(s)
Different language?
Entitas is available in
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net5.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1 | 7/31/2021 |