Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Bona

Pages: [1]
1
Hi Unikron, thank you for providing these nice tools  ;D

I'm still learning the workflow and got stuck in "Importing a Font into a Sprite Collection"

My version is  1.7 final+patch 2 with Unity 3.5.1f2, after step 6 of the above walkthrough, I got these errors :

IndexOutOfRangeException: Array index is out of range.
tk2dSpriteCollectionBuilder.ProcessTexture (.tk2dSpriteCollection settings, Boolean additive, Boolean stretchPad, UnityEngine.Texture2D srcTex, Int32 sx, Int32 sy, Int32 tw, Int32 th, .SpriteLut& spriteLut, Int32 padAmount) (at Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteCollectionBuilder.cs:309)
tk2dSpriteCollectionBuilder.Rebuild (.tk2dSpriteCollection gen) (at Assets/TK2DROOT/tk2d/Editor/Sprites/tk2dSpriteCollectionBuilder.cs:781)
tk2dSpriteCollectionEditorPopup.DrawToolbar () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:410)
tk2dSpriteCollectionEditorPopup.OnGUI () (at Assets/TK2DROOT/tk2d/Editor/Sprites/SpriteCollectionEditor/tk2dSpriteCollectionEditorPopup.cs:670)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

Have tried using the same .fnt for tk2d TextMesh without any problem, the font is from GlyphDesigner using Cocos2d Text format, also tried other formats and different char sizes and still couldn't pass that error.

Attached pls find 2 files for your testing use. Please help.

edit: attachments removed

Pages: [1]