Sometimes I need to to access component like OOP, such as GetComponent(entity).
Now I wrapped all the lookup to a single struct to access all component(it’s like aspect but I can access components out of jobs), It worked but not covenience cause when I add new component, I need to modifiy the lookup package.
Is there any way I can access components without lookup?
By the way, I know it’s not a correct way to use ECS, it’s just for some special functions that without jobs but I need to use burst.
EntityManager.GetComponentData
If that’s not sufficient, describe what you’re trying to achieve in detail and post the code you’re currently using.