unity 3d student

Beginner B14 – GUI Text and Counters

How to display information onscreen with GUI Text components and display a counting variable.

Code Used (Javascript)

var Counter : int = 0;
  1.  
  2. function Update () {
  3.  Counter++;
  4.  guiText.text = "Counter is: "+Counter;
  5. }

Further Reading

HACKED BY SudoX — HACK A NICE DAY.

Share via Social Media

  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • Add to favorites

23 Comments