Hello Guest

Author Topic: GetComponent(tk2dTextMesh) Returns Error (Code Works in Other App)  (Read 3556 times)

sfbaystudios

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 40
    • View Profile
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?
« Last Edit: February 01, 2013, 12:38:32 am by sfbaystudios »