Skip to content

Commit 6f0400a

Browse files
committed
fix error IndexOutOfRangeException: Array index is out of range.
1 parent f6bbd44 commit 6f0400a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Assets/Plugins/BitmapFontImporter/Editor/BFImporter.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public static void DoImportBitmapFont(string fntPatn)
6868
font.material = material;
6969
material.shader = Shader.Find(textures.Length > 1 ? "BFI/Font" + textures.Length : "UI/Default");
7070
material.mainTexture = textures[0];
71-
material.SetTexture("_MainTex2", textures[1]);
7271
for (int i = 1; i < textures.Length; i++)
7372
{
7473
material.SetTexture("_MainTex"+i, textures[i]);

0 commit comments

Comments
 (0)