static void GeneratePackageFull() { var rootPath = FRPackagerPaths.GetFrameRecorderRootPath(); var type = System.Type.GetType("UnityEditor.FrameRecorder.MovieRecorderPackager"); if (type != null) { var method = type.GetMethod("GeneratePackage"); method.Invoke(null, null); AssetDatabase.Refresh(); } UpdateVersion(); var files = new [] { Path.Combine(rootPath, "Framework.meta"), Path.Combine(rootPath, "Framework/Core"), Path.Combine(rootPath, "Framework/Inputs"), Path.Combine(rootPath, "Framework/Recorders"), Path.Combine(rootPath, "Framework/Packager/Editor"), Path.Combine(rootPath, "Extensions/UTJ"), Path.Combine(rootPath, "Extensions/FCIntegration"), Path.Combine(rootPath, "Extensions/MovieRecorder/Packaging"), }; var destFile = k_PackageName + "(full).unitypackage"; AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse); Debug.Log("Generated package: " + destFile); }
static void GeneratePackage() { var rootPath = FRPackagerPaths.GetFrameRecorderRootPath(); FrameCapturerPackagerInternal.GeneratePackage(); string[] files = new string[] { Path.Combine(rootPath, "Core"), Path.Combine(rootPath, "Inputs"), Path.Combine(rootPath, "Recorders"), Path.Combine(rootPath, "Packager/Editor"), Path.Combine(rootPath, "Integrations/FrameCapturer/Editor"), FRPackagerPaths.GetIntegrationPackagePath(), }; var destFile = k_PackageName + ".unitypackage"; AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse); Debug.Log("Generated package: " + destFile); }
static void GeneratePackage() { var rootPath = FRPackagerPaths.GetFrameRecorderRootPath(); UpdateVersion(); string[] files = new string[] { Path.Combine(rootPath, "Framework.meta"), Path.Combine(rootPath, "Framework/Core"), Path.Combine(rootPath, "Framework/Inputs"), Path.Combine(rootPath, "Framework/Recorders"), Path.Combine(rootPath, "Framework/Packager/Editor"), }; var destFile = k_PackageName + ".unitypackage"; AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse); Debug.Log("Generated package: " + destFile); }
static void GenerateAssetStorePackage() { var rootPath = FRPackagerPaths.GetFrameRecorderRootPath(); UpdateVersion(); var files = new [] { Path.Combine(rootPath, "Recorder_install.pdf"), Path.Combine(rootPath, "Framework.meta"), Path.Combine(rootPath, "Framework/Core"), Path.Combine(rootPath, "Framework/Inputs"), Path.Combine(rootPath, "Framework/Recorders"), Path.Combine(rootPath, "Framework/Packager/Editor"), Path.Combine(rootPath, "Extensions/UTJ"), Path.Combine(rootPath, "Extensions/FCIntegration"), }; var destFile = k_PackageName + ".unitypackage"; AssetDatabase.ExportPackage(files, destFile, ExportPackageOptions.Recurse); Debug.Log("Generated package: " + destFile); }