2D Toolkit Forum
2D Toolkit => Support => Topic started by: mr_malee 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.
-
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?
-
- 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.