Skip to content
Aaron E. Freedman edited this page Apr 26, 2017 · 78 revisions

Upgrade Notice

Regarding terminology

Context was previously Pool

  • Since Entitas v0.36.0 Pool has been renamed to Context
  • All references to Pool/Pools in older documentation or tutorials should be interpreted as Context/Contexts.
  • See the Upgrade Guide for more information on how to upgrade older projects.

Installation

1. Download Entitas

2. Setup

Setup for Unity3D

  1. Copy the contents of the Entitas-Unity.zip into the Assets folder of your Unity project.
    • It's best to place this in a sub-folder like Assets/Libraries/Entitas for organization, but you can place it anywhere in the project.
  2. Open the Entitas Preferences from the Menu Bar -> Entitas -> Preferences
  3. Specify all the paths and set everything up to your liking
  4. Use the generate button or the menu item

Setup for a C# project

  • Option A: Use the EntitasPure sample project
  • Option B:
    1. Add the contents of Entitas-CSharp.zip to your project
      • If you want to use the code generator you can create yourself a simple helper console application which you can run as a post compile command.
      • See EntitasPure Program.cs
    2. The project file must be updated in order to recognize the generated files
    3. Add this to your .csproj

Example:

<ItemGroup>
  <Compile Include="Generated\**\*.cs" />
</ItemGroup>

Done. You're awesome! 🎉

Add contexts, write some components and systems and make an awesome game. Feel free to share what you've created with Entitas in the Community Section in the Wiki and use #madeWithEntitas in your Tweets so we can all enjoy playing your game or learn from it!

https://github.com/sschmid/Entitas-CSharp/wiki/Example-projects

Clone this wiki locally