public class MovementSystem : ComponentSystem
{
public struct Filter
{
public Transform m_Transform;
public MoveComponent m_MoveComponent;
}
protected override void OnUpdate()
{
var entities = GetEntities<Filter>();
Debug.Log(entities.Length);
}
}