Hello Guest

Author Topic: TextMesh Editor Bug  (Read 5048 times)

mr_malee

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
TextMesh Editor Bug
« on: September 19, 2013, 07:37:28 pm »
Not sure if this is the right place to post a bug, but this keeps happening in the editor every now and then:

NullReferenceException: Object reference not set to an instance of an object
tk2dTextMesh.NumTotalCharacters () (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:428)
tk2dTextMeshEditor.OnInspectorGUI () (at Assets/TK2DROOT/tk2d/Editor/Fonts/tk2dTextMeshEditor.cs:317)
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty) (at C:/BuildAgent/work/cac08d8a5e25d4cb/Editor/Mono/Inspector/InspectorWindow.cs:888)
UnityEditor.DockArea:OnGUI()

using unity 4.2.1f4
2d toolkit 2.2 final

If I change the max chars in the textMesh editor then the problem goes away for a little while, but then sometimes creeps back in once I hit play.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: TextMesh Editor Bug
« Reply #1 on: September 19, 2013, 11:50:32 pm »
Thats quite bizarre. What is the rest of your setup like? Is there anything special/consistent about when it happens?
Also, has anyone else seen this?

mr_malee

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: TextMesh Editor Bug
« Reply #2 on: September 20, 2013, 06:44:50 pm »
  • Using AssetServer.
  • Using Font created in sprite collection.

I've noticed the warning generally occurs after updating a sprite texture in the sprite collection without committing and without pressing play.
Also, visual artifacts occur on the font if I don't hit play after updating a texture.