public TypeInfoStream(Allocator label) { if (null == s_TypeInfos) { s_TypeInfos = TypeManager.GetAllTypes(); } m_TypeInfo = new NativeArray <Layout>(TypeManager.MaximumTypesCount, label); m_EntityOffsets = new NativeList <byte>(1, label); LinkedEntityGroupTypeIndex = TypeManager.GetTypeIndex <LinkedEntityGroup>(); IsCreated = true; foreach (var type in s_TypeInfos) { Add(type); } }