Hi,
I am giving ECS a try watching online tutorials here and there to learn. However I reach a problem when the tutorial guides me to create a EntityManager and assign it.
But When I write it and save, the console give me back this error-
World’ does not contain a definition for ‘DefaultGameObjectInjectionWorld’
I am using - using.Entities. in namespace.
I follow all the tutorials, I am using the dated version of unity and downloading the packages, burst, entities, jobs, and hybrid renderer. Is there something I am missing?
If you inside ComponentSystem\JobComponentSystem\SystemBase, they have property World which is already an instance of World class. Call you showed is for getting World\EntityManager in MonoBehaviour. In systems, you already have World property and already have EntityManager property, just use them directly.