示例#1
0
        private static PackageExporterArguments ParseCommandLineArguments()
        {
            PackageExporterArguments arguments = new PackageExporterArguments();

            // Redirect Console.Error output to Unity
            Console.SetError(new UnityDebugLogErrorWriter());
            Parser.Default.ParseArguments(Environment.GetCommandLineArgs(), arguments);
            // Unset console output
            Console.SetError(TextWriter.Null);

            return(arguments);
        }
示例#2
0
        public static void Export()
        {
            PackageExporterArguments args = ParseCommandLineArguments();

            try
            {
                Export(args.Config);
            }
            catch (Exception ex)
            {
                Debug.LogError(ex);
                if (Application.isBatchMode)
                {
                    EditorApplication.Exit(1);
                }
            }
        }
示例#3
0
        public static void Export()
        {
            PackageExporterArguments args = ParseCommandLineArguments();

            Export(args.Config);
        }