Entitas icon indicating copy to clipboard operation
Entitas copied to clipboard

how do I create 2 separate "Context" ?

Open bayganik opened this issue 3 years ago • 3 comments

Hi,

Thank you for sharing your software. How do I create 2 separate "Context" to be able to create entities? for example: I want my Game entities to be created separate from UI entities.

I tried different system and features but it won't work.

Cheers Kamran

bayganik avatar Oct 01 '20 19:10 bayganik

Make separate contexts like GameContext and UiContext, no? You can make a different contexts in preferences.

WeslomPo avatar Oct 03 '20 08:10 WeslomPo

I use Entitas in csharp. I do NOT use Unity.

bayganik avatar Oct 05 '20 13:10 bayganik

You should modify config file that generator reads from and add context name to Entitas.CodeGeneration.Plugins.Contexts see https://github.com/sschmid/Match-One/blob/master/Jenny.properties for example

c0ffeeartc avatar Oct 05 '20 15:10 c0ffeeartc

@bayganik See Entitas-Standalone It's a pure C# console app. Contexts can be defined in Jenny.properties by specifying a comma separated list of context names for Entitas.CodeGeneration.Plugins.Contexts

sschmid avatar Sep 06 '22 21:09 sschmid