Welcome,
Guest
. Please
login
or
register
.
January 15, 2026, 03:08:52 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to get UILabel to display a global variable instead of whatever is entered.
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to get UILabel to display a global variable instead of whatever is entered. (Read 2262 times)
SPQR
Guest
How to get UILabel to display a global variable instead of whatever is entered.
«
on:
November 13, 2012, 08:32:15 AM »
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.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: How to get UILabel to display a global variable instead of whatever is entered.
«
Reply #1 on:
November 13, 2012, 03:57:37 PM »
UILabel lbl
=
GetComponent
<
UILabel
>
(
)
;
lbl
.
text
=
"Hello World!"
;
Logged
SPQR
Guest
Re: How to get UILabel to display a global variable instead of whatever is entered.
«
Reply #2 on:
November 13, 2012, 09:27:47 PM »
Thank You !
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
How to get UILabel to display a global variable instead of whatever is entered.