예제 #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);
        }