Hi, getting this error on a system. I can delete all of the code to make it basically empty but it doesn’t prevent the error. Is this codegen related? The system seems to be running fine in play mode.
[Worker0] ArgumentException: ‘XXXSystem’ cannot be constructed as it does not inherit from ComponentSystemBase
Unity.Entities.TypeManager.ConstructSystem (System.Type systemType) (at Library/PackageCache/com.unity.entities@1.3.8/Unity.Entities/Types/TypeManagerSystems.cs:701)
In my case I was getting this error because I had a managed unity object field in an ISystem-based system struct.
Removing the field solved the problem.
public partial struct SelectionHandlingSystem : ISystem
{
private Camera _mainCamera; // <- illegal!
...
I guess managed object fields are allowed in a SystemBase system?