Пример #1
0
        public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
        {
            string dic = Directory.GetCurrentDirectory();

            foreach (string importedAsset in importedAssets)
            {
                if (QEditorTextStaticAPI.IsFile(importedAsset))
                {
                    string file = dic + "/" + importedAsset;
                    QEditorTextStaticAPI.SetFileFormatToUTF8_BOM(file);
                }
            }
        }
Пример #2
0
        public static void SetAllScriptsToUTF8_BOM()
        {
            string folder = Directory.GetCurrentDirectory() + "/Assets/";

            QEditorTextStaticAPI.SetFolderFormatToUTF8_BOM(folder);
        }