Closed pmikstacki closed 3 years ago
@pmikstacki I've just reproduced this locally and can see what the issue is. Following the tutorial, the first code-generation event takes place before it's directed the user to create any components, but the way code-generation is setup for components it must not handle the case to generate either the CopyTo
or CopyComponentTo
methods if there are not any components assigned to that context. The ideal outcome should be in this case that it generates empty methods with these signatures for a context/entity that does not have any components assigned.
There is a workaround you can use for now by:
Assets\Generated
[Game, Input]
public class EmptyComponent : IComponent {}
This should put you at a point where everything compiles and you can proceed with the Hello World tutorial.
In the meantime I will adjust the title of the bug and assign it for a release for the near future.
This has been resolved in a fix merged to develop.
Describe the bug After Generation Unity throws
Unity Version: Unity 2020.1.8f
To Reproduce Steps to reproduce the behavior:
Expected behavior Stuff Generates without errors.
Screenshots Assembly Definitions for Entitas Redux are autoreferenced so it is not the case of generic null reference.
Additional context I also use URP in my project. I even created a new project but the problem persists.