Browse Source

ios-icon设置bug修复

lvjincheng 2 years ago
parent
commit
bb69a43163
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Assets/BowArrow/Scripts/Editor/MenuChangeAppLanguage.cs

+ 1 - 1
Assets/BowArrow/Scripts/Editor/MenuChangeAppLanguage.cs

@@ -59,7 +59,7 @@ public class MenuChangeAppLanguage
         }
         int[] iconSize = PlayerSettings.GetIconSizesForTargetGroup(BuildTargetGroup.iOS);
         Texture2D[] textureArray = new Texture2D[iconSize.Length];
-        for (int i = 0; i < textureArray.Length; i++) textureArray[i] = null;
+        for (int i = 0; i < textureArray.Length; i++) textureArray[i] = texture;
         PlayerSettings.SetIconsForTargetGroup(BuildTargetGroup.iOS, textureArray);
         AssetDatabase.SaveAssets();
     }