FRBDK/Glue/AtlasPlugin/TpsFileSave.cs
/// <summary>
/// Calls TexturePacker.exe to generate the atlas data and png files.
/// </summary>
Calls TexturePacker.exe to generate the atlas data and png files.
Calls TexturePacker . exe to generate the atlas data and png files .
public void CreateAtlasFiles()
        {
            var processInfo = new ProcessStartInfo
                              {
                                  FileName = @"C:\Program Files\CodeAndWeb\TexturePacker\bin\TexturePacker.exe",
                                  Arguments =  Filename + " --force-publish",
                                  UseShellExecute = false,
                                  RedirectStandardOutput = true,
                                  RedirectStandardError = true,
                                  CreateNoWindow = true
                              };
            var tpProcess = new Process {StartInfo = processInfo};
            try
            {
                tpProcess.Start();
                var tpOutput = tpProcess.StandardOutput.ReadToEnd();
                var tpError = tpProcess.StandardError.ReadToEnd();
                PluginManager.ReceiveOutput(tpOutput);
                PluginManager.ReceiveError(tpError);
            }
            catch (Exception e)
            {
                throw e.InnerException;
            }
        }
public void CreateAtlasFiles ( ) { var processInfo = new ProcessStartInfo { FileName = @"C:\Program Files\CodeAndWeb\TexturePacker\bin\TexturePacker.exe" , Arguments = Filename + " " , UseShellExecute = false , RedirectStandardOutput = true , RedirectStandardError = true , CreateNoWindow = true } ; var tpProcess = new Process { StartInfo = processInfo } ; try { tpProcess . Start ( ) ; var tpOutput = tpProcess . StandardOutput . ReadToEnd ( ) ; var tpError = tpProcess . StandardError . ReadToEnd ( ) ; PluginManager . ReceiveOutput ( tpOutput ) ; PluginManager . ReceiveError ( tpError ) ; } catch ( Exception e ) { throw e . InnerException ; } }
Calls TexturePacker.exe to generate the atlas data and png files.
Calls TexturePacker . exe to generate the atlas data and png files .