Hi unikron,
Currently using 2d toolkit for my game. I got this strange problem when updating a tk2dtextmesh using tk2dtextmesh.Commit(), after assigning text from a int variable using tk2dtextmesh.text = (int variable).toString();
Sometimes it works, but after a few tries it returns a null reference exception, and after that it won't work anymore.
I'm currently calling the assigning and commit code using a event-delegate method. the text is a tk2dtextmesh in a scene that is assigned to the update script via drag and drop from the scene.
Here's the code : (note some name are replaced with ~ for privacy)
NullReferenceException
at UnityEngine.Component.GetComponent[MeshFilter] () [0x00000] in <filename unknown>:0
at tk2dTextMesh.Init () [0x00277] in /Volumes/Temp/~/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:505
at tk2dTextMesh.Commit () [0x0002f] in /Volumes/Temp/~Assets/TK2DROOT/tk2d/Code/Fonts/tk2dTextMesh.cs:546
at (wrapper delegate-invoke) EventsController/~Handler:invoke_void__this__ ()
at (wrapper delegate-invoke)