sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7.03k stars 1.11k forks source link

[Bug] CleanupSystem would not be generated in version 1.13 #1004

Closed rayss1 closed 1 year ago

rayss1 commented 1 year ago

Hi,

I found a bug that CleanupSystem cannot be generated in entitas1.13

Here's the code

using Entitas; using Entitas.CodeGeneration.Attributes; using UnityEngine;

[Input, Cleanup(CleanupMode.DestroyEntity)] public sealed class InputComponent : IComponent { public Vector2Int value; }

After click Jenny->Generate, I can't find CleanupInputSystem in generated code

Cheers

sschmid commented 1 year ago

Hi! Cleanup is currently only in the Entitas Unity Asset Store version.

Cleanup and all Roslyn code generators will be part of all Entitas 1.14.

I posted an update to share more info about it: https://github.com/sschmid/Entitas-CSharp/issues/992#issuecomment-1227761712

sschmid commented 1 year ago

All Entitas versions now have this! See #978