Ejemplo n.º 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);
        }
Ejemplo n.º 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);
                }
            }
        }
Ejemplo n.º 3
0
        public static void Export()
        {
            PackageExporterArguments args = ParseCommandLineArguments();

            Export(args.Config);
        }