2D Toolkit Forum

2D Toolkit => Support => Topic started by: sfbaystudios on February 01, 2013, 12:07:16 am

Title: GetComponent(tk2dTextMesh) Returns Error (Code Works in Other App)
Post by: sfbaystudios on February 01, 2013, 12:07:16 am
I have used this code in another app that works fine, and I've tested this in a stand-alone script as well, which also fails.  The code is:

   GetComponent(tk2dTextMesh).text = "2";
   GetComponent(tk2dTextMesh).Commit();

The error, in unity without playing, is:

Assets/Scripts/createGameSelections.js(66,46): BCE0005: Unknown identifier: 'tk2dTextMesh'.

I'm not sure what to do about this, since it should work, right?