Author Topic: How to get UILabel to display a global variable instead of whatever is entered.  (Read 2262 times)

SPQR

  • Guest
I'm very new at this, If any one can help me with a few lines of code/script that gets the UILabel Component and modifies the text property would be very much appreciated.

Thank you.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
  1. UILabel lbl = GetComponent<UILabel>();
  2. lbl.text = "Hello World!";

SPQR

  • Guest
Thank You !