void ExportAllAssetToBundle() { if (GUILayout.Button("导出文件")) { if (CheckAllTextAndClassIsMacth(displayTableInfoList)) { func.ExportScriptableObjects(func.scriptableObjectList, func.data.buildTarget, func.data.bundleName, func.data.outputDirectoryPath); //EditorUtility.DisplayDialog("提示", "导出成功!", "确定"); } else { EditorUtility.DisplayDialog("警告", "导出失败!请使用检查功能或者查看输出信息。", "确定"); } } }
public static void BatchModeExportAssets() { ysTableBundleData editorData = new ysTableBundleData(); editorData.Initialize(); ysTableBundleFunc editorFunc = new ysTableBundleFunc(); editorFunc.data = editorData; editorFunc.scriptableObjectList = editorFunc.ReadScriptableObjectList(editorData.paths.scriptableObjectPath); editorFunc.ExportScriptableObjects( editorFunc.scriptableObjectList, editorFunc.data.buildTarget, editorFunc.data.bundleName, editorFunc.data.outputDirectoryPath); }