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