Hello Guest

Author Topic: Is there any form of super fast dynamic text?  (Read 4225 times)

Aaron

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Is there any form of super fast dynamic text?
« on: September 11, 2013, 04:50:10 am »
Hi guys. I'm new to 2DToolkit and am messing around with scores. Is there a built in super fast score/text object in 2DToolkit that takes next to no time to update? I assume that TextMesh needs to do quite a bit of work to update its mesh when the value changes.

NOTE: I can write one of course, just wondering if there's something already there in the toolkit?

Thanks

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Is there any form of super fast dynamic text?
« Reply #1 on: September 11, 2013, 11:10:11 am »
The textmesh doesn't really do all that much when you update the mesh. Set the maxchars to the max number of chars you'll ever need (not that many for a score board), and the update will be really really fast. Don't use any of the additional features, like formatting, and you should be perfectly fine.

Aaron

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Is there any form of super fast dynamic text?
« Reply #2 on: September 11, 2013, 10:41:13 pm »
Thanks. I won't worry about for now.