public int Execute(ref EditorSystemContext context, EditorEvent assetEvent) { if (assetEvent == EditorEvent.Build) { IParseDependencyWriter binarywriter = AssetWindowConfig.GetDepWriter(); string exportPath = GetOutputPath() + "/" + AssetBundleConfig.DepFileName; string streamexportPath = AssetBundleHelper.GetBundleStreamPath(AssetBundleConfig.DepFileName); if (binarywriter == null || !binarywriter.Write(exportPath) || !binarywriter.Write(streamexportPath)) { return(-1); } AssetDatabase.Refresh(); } return(0); }