2D Toolkit Forum
2D Toolkit => Support => Topic started by: fallingbrickwork on September 15, 2014, 09:53:11 am
-
Hi,
I seem to have acquired a NullReferenceException via my call to GetEstimatedMeshBoundsForString since updating unity to 4.5.4f1.
Is this something my end or an issue in the tk2d core.. btw i'm on 2.4.0. Would updating to 2.5 fix this? Is these something I can amend in the code for a 'quick fix'?
Regards,
Matt.
-
Can you paste the specific error + line numbers please?
-
NullReferenceException: Object reference not set to an instance of an object
tk2dTextGeomGen.GetMeshDimensionsForString (System.String str, .GeomData geomData) (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextGeomGen.cs:78)
tk2dTextMesh.GetEstimatedMeshBoundsForString (System.String str) (at Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:517)
-
GetEstimatedMeshBoundsForString - is there an InitInstance() right at the start of the function? My vpn isn't working and I can't roll back history to check...
-
Yes there is... the very first line.
-
Hmmm.. is the font still bound properly on it?
-
Ahh, the font.... yes that is what it is... updating Unity seems to have messed up my fonts. Not on all the Tk2dTextMesh, but on some.. hmmm.
Many thanks for helping to track it down... it appears the issue is with this.
Many thanks,
Matt.