private void SaveLegacyData() { _tableComponent.LegacyContainer.TableData = _sourceContainer.Table.Data; _sourceContainer.WriteDataToDict <Bumper, BumperData>(_tableComponent.LegacyContainer.Bumpers); _sourceContainer.WriteDataToDict <Flipper, FlipperData>(_tableComponent.LegacyContainer.Flippers); _sourceContainer.WriteDataToDict <Gate, GateData>(_tableComponent.LegacyContainer.Gates); _sourceContainer.WriteDataToDict <HitTarget, HitTargetData>(_tableComponent.LegacyContainer.HitTargets); _sourceContainer.WriteDataToDict <Kicker, KickerData>(_tableComponent.LegacyContainer.Kickers); _sourceContainer.WriteDataToDict <Light, LightData>(_tableComponent.LegacyContainer.Lights); _sourceContainer.WriteDataToDict <Plunger, PlungerData>(_tableComponent.LegacyContainer.Plungers); _sourceContainer.WriteDataToDict <Primitive, PrimitiveData>(_tableComponent.LegacyContainer.Primitives); _sourceContainer.WriteDataToDict <Ramp, RampData>(_tableComponent.LegacyContainer.Ramps); _sourceContainer.WriteDataToDict <Rubber, RubberData>(_tableComponent.LegacyContainer.Rubbers); _sourceContainer.WriteDataToDict <Spinner, SpinnerData>(_tableComponent.LegacyContainer.Spinners); _sourceContainer.WriteDataToDict <Surface, SurfaceData>(_tableComponent.LegacyContainer.Surfaces); _sourceContainer.WriteDataToDict <Trigger, TriggerData>(_tableComponent.LegacyContainer.Triggers); _sourceContainer.WriteDataToDict <Bumper, BumperData>(_tableComponent.LegacyContainer.Bumpers); _sourceContainer.WriteDataToDict <MetalWireGuide, MetalWireGuideData>(_tableComponent.LegacyContainer.MetalWireGuides); _tableComponent.LegacyContainer.Decals = _sourceContainer.GetAllData <Decal, DecalData>(); _tableComponent.LegacyContainer.DispReels = _sourceContainer.GetAllData <DispReel, DispReelData>(); _tableComponent.LegacyContainer.Flashers = _sourceContainer.GetAllData <Flasher, FlasherData>(); _tableComponent.LegacyContainer.LightSeqs = _sourceContainer.GetAllData <LightSeq, LightSeqData>(); _tableComponent.LegacyContainer.TextBoxes = _sourceContainer.GetAllData <TextBox, TextBoxData>(); _tableComponent.LegacyContainer.Timers = _sourceContainer.GetAllData <Timer, TimerData>(); var path = Path.Combine(_assetsTableRoot, "Legacy Data.asset"); if (File.Exists(path)) { File.Delete(path); } AssetDatabase.CreateAsset(_tableComponent.LegacyContainer, path); }