| | |
| | | { |
| | | var fileName = fileNames[i]; |
| | | var fromPath = "Assets/Editor/Logo/" + GetVersionName(publisher) + "/" + fileName; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/UI/Sprites/" + fileName; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/Sprites/" + fileName; |
| | | AssetDatabase.DeleteAsset(toPath); |
| | | |
| | | if (AssetDatabase.LoadAssetAtPath<Texture>(fromPath) == null) |
| | |
| | | public static void SetLoginBackGround(string publisher, BuildTarget buildTarget) |
| | | { |
| | | var fromPath = "Assets/Editor/Logo/" + GetVersionName(publisher) + "/LoginBackGround.png"; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/UI/Sprites/LoginBackGround.png"; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/Sprites/LoginBackGround.png"; |
| | | AssetDatabase.DeleteAsset(toPath); |
| | | if (!File.Exists(Application.dataPath + "/Editor/Logo/" + GetVersionName(publisher) + "/LoginBackGround.png")) |
| | | { |
| | |
| | | } |
| | | AssetDatabase.CopyAsset(fromPath, toPath); |
| | | |
| | | var importerPath = "Assets/ResourcesOut/BuiltIn/UI/Sprites/LoginBackGround.png"; |
| | | var importerPath = "Assets/ResourcesOut/BuiltIn/Sprites/LoginBackGround.png"; |
| | | var importer = AssetImporter.GetAtPath(importerPath); |
| | | var textureImporter = importer as TextureImporter; |
| | | if (textureImporter != null) |
| | |
| | | public static void SetLoginLogo(string publisher, BuildTarget buildTarget) |
| | | { |
| | | var fromPath = "Assets/Editor/Logo/" + GetVersionName(publisher) + "/TB_DL_Logo.png"; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/UI/Sprites/TB_DL_Logo.png"; |
| | | var toPath = "Assets/ResourcesOut/BuiltIn/Sprites/TB_DL_Logo.png"; |
| | | AssetDatabase.DeleteAsset(toPath); |
| | | AssetDatabase.CopyAsset(fromPath, toPath); |
| | | |
| | | var importerPath = "Assets/ResourcesOut/BuiltIn/UI/Sprites/TB_DL_Logo.png"; |
| | | var importerPath = "Assets/ResourcesOut/BuiltIn/Sprites/TB_DL_Logo.png"; |
| | | var importer = AssetImporter.GetAtPath(importerPath); |
| | | var textureImporter = importer as TextureImporter; |
| | | if (textureImporter != null) |