protected override void SetupEntities() { _componentDatabase.PreAllocateComponents(StructComponent1TypeId, EntityCount); _componentDatabase.PreAllocateComponents(StructComponent2TypeId, EntityCount); base.SetupEntities(); var batchBuilder = _batchBuilderFactory.Create <StructComponent, StructComponent2>(); _componentBatch = batchBuilder.Build(_collection); }
protected override void RebuildBatch() { _batch.Dispose(); _batch = _batchBuilder.Build(ObservableGroup); }