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