unity打包选项编辑器扩展

using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.IO;
 
public class PostProcessBuild
{
    [PostProcessBuildAttribute(1)]
    public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject)
    {
        if (target == BuildTarget.StandaloneWindows || target == BuildTarget.StandaloneWindows64)
        {
            // remove these annoying PDB files as we don't want to debug stand alone builds!
            string pureBuildPath = Path.GetDirectoryName(pathToBuiltProject);
            foreach (string file in Directory.GetFiles(pureBuildPath, "*.pdb"))
            {
                Debug.Log(file + " deleted!");
                File.Delete(file);
            }
        }
    }
 

unity打包选项编辑器扩展
posted @ 2016-12-15 14:18 00000000O 阅读(...) 评论(...) 编辑 收藏

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-12-16
猜你喜欢
  • 2021-04-29
  • 2022-12-23
  • 2021-11-07
  • 2021-11-10
相关资源
相似解决方案