Day 2 of Devtober has come and we are cooking with gas. With the help of the r/GameDev community, I have found a solution to passing a random size list of transform position into an entity. This has been a huge hurdle prevent me from getting my AI System running in a efficient use of ECS. Since components have to have set size into order efficient allocate memories arrays and list cannot be used in directly in ECS. However with Dynamics Buffers, we can allocate a maximum allotted size for buffer and reserved that space on creation. This will be used in maintain a list of patrol point and attack able characters in range.
One small bug to overcome is the new unity Translation, ECS equivalent of Transform, does not update when using Hybrid ECS. I have previously written code with handle the update as Unity has not update the Job System that previous handle it after the depreciate the GameObjectEntity.