| | |
| | | } |
| | | } |
| | | |
| | | public static void SetOPConfig(string publisher, BuildTarget buildTarget) |
| | | { |
| | | var opName = GetVersionName(publisher); |
| | | var fromPath = $"Assets/Editor/Logo/{opName}/{opName}OPConfig.txt"; |
| | | var toPath = "Assets/ResourcesOut/Config/OPConfig.txt"; |
| | | AssetDatabase.DeleteAsset(toPath); |
| | | var root = Application.dataPath.Substring(0, Application.dataPath.Length - 6) + "/"; |
| | | File.Copy(root + fromPath, root + toPath); |
| | | |
| | | AssetDatabase.SaveAssets(); |
| | | AssetDatabase.Refresh(); |
| | | |
| | | } |
| | | |
| | | static string GetVersionName(string _publisher) |
| | | { |