public override void ExportGraph(List <InternalBaseGraphAsset> assets) { for (int i = 0; i < assets.Count; i++) { if (assets[i] is BulletGraphAsset) { BulletGraphAsset asset = assets[i] as BulletGraphAsset; BaseGraph graphData = asset.DeserializeGraph(); //运行时数据结构 BulletModel model = SerializeToBulletModel(graphData, asset); string filePath = SkillDef.GetBulletCnfPath(asset.bulletId); IOHelper.WriteText(JsonMapper.ToJson(model), filePath); Debug.Log($"Bullet配置生成成功>>>>{filePath}"); } } AssetDatabase.SaveAssets(); AssetDatabase.Refresh(); }